From d9efc89cc3f12978966b3b64957dc365f60b32a8 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 16 Jan 2022 12:42:07 +0200 Subject: feat: add script to produce HTML report from result files Sponsored-by: author --- README.md | 6 ++++++ README.me | 6 ------ report.css | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ report.sh | 7 +++++++ 4 files changed, 74 insertions(+), 6 deletions(-) create mode 100644 README.md delete mode 100644 README.me create mode 100644 report.css create mode 100755 report.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..7e12f08 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# Obnam benchmark results + +This repository contains result files from running the +`obnam-benchmark` tool against the benchmark specifications in the +`obnam-benchmark-specs` repository. A CI job will produce reports from +the result files in this repository, and publish them on a website. diff --git a/README.me b/README.me deleted file mode 100644 index 7e12f08..0000000 --- a/README.me +++ /dev/null @@ -1,6 +0,0 @@ -# Obnam benchmark results - -This repository contains result files from running the -`obnam-benchmark` tool against the benchmark specifications in the -`obnam-benchmark-specs` repository. A CI job will produce reports from -the result files in this repository, and publish them on a website. diff --git a/report.css b/report.css new file mode 100644 index 0000000..76735fd --- /dev/null +++ b/report.css @@ -0,0 +1,61 @@ + diff --git a/report.sh b/report.sh new file mode 100755 index 0000000..02935d8 --- /dev/null +++ b/report.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -euo pipefail + +TITLE="Obnam benchmarks" +obnam-benchmark report "$@" | + pandoc - -o obnam-benchmark.html --standalone -H report.css --toc --metadata title="$TITLE" -- cgit v1.2.1