diff options
Diffstat (limited to 'subplot/benchmark.yaml')
-rw-r--r-- | subplot/benchmark.yaml | 22 |
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 |