summaryrefslogtreecommitdiff
path: root/subplot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-12-03 18:32:50 +0200
committerLars Wirzenius <liw@liw.fi>2021-12-03 18:32:50 +0200
commit1f8646b2d291d6666ae86dcd496b492f326c41ad (patch)
tree8805f9b9c09ae0fc03811ba4261ae7c9e9817dd1 /subplot
parent966ef1728fadbd12980d7e57b369afe5715cc49f (diff)
downloadobnam-benchmark-1f8646b2d291d6666ae86dcd496b492f326c41ad.tar.gz
doc: start documenting obnam-benchmark and its requirements
Sponsored-by: author
Diffstat (limited to 'subplot')
-rw-r--r--subplot/benchmark.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/subplot/benchmark.yaml b/subplot/benchmark.yaml
new file mode 100644
index 0000000..4be4765
--- /dev/null
+++ b/subplot/benchmark.yaml
@@ -0,0 +1,22 @@
+- given: an installed obnam-benchmark
+ impl:
+ rust:
+ function: install_obnam_benchmark
+
+- given: the benchmark system is set up
+ impl:
+ rust:
+ function: set_up_benchmark
+ cleanup: stop_benchmark
+
+- then: benchmark "{name}" in {filename} lasted less than {ms:int} milliseconds
+ impl:
+ rust:
+ function: benchmark_duration_less_than
+
+- then: stdout, as JSON, matches {filename}
+ impl:
+ rust:
+ function: stdout_matches_json
+ type:
+ filename: file