summaryrefslogtreecommitdiff
path: root/obnam-benchmark.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-12-05 11:27:51 +0200
committerLars Wirzenius <liw@liw.fi>2021-12-05 11:27:51 +0200
commit131e0f8fec6bbce21dc66fbdd5f2140834199cf2 (patch)
tree93ce26c4e0f62ae46841c15a12acf1f385446641 /obnam-benchmark.md
parent0cdf96eaf0782021a0bade74d742bf70c1569244 (diff)
downloadobnam-benchmark-131e0f8fec6bbce21dc66fbdd5f2140834199cf2.tar.gz
fix: make first scenario work
Sponsored-by: author
Diffstat (limited to 'obnam-benchmark.md')
-rw-r--r--obnam-benchmark.md17
1 files changed, 8 insertions, 9 deletions
diff --git a/obnam-benchmark.md b/obnam-benchmark.md
index cf00fc4..e80ae91 100644
--- a/obnam-benchmark.md
+++ b/obnam-benchmark.md
@@ -39,20 +39,20 @@ how to prepare the test data for each backup generation. Example:
```{.yaml .numberLines}
- benchmark: maildir
backups:
- - change:
+ - changes:
- create:
files: 100000
file_size: 0
- rename:
files: 1000
- - change: []
+ - changes: []
- benchmark: video-footage
backups:
- - change:
+ - changes:
- create:
files: 1000
filee_size: 1G
- - change: []
+ - changes: []
```
The example above specifies two benchmarks: "maildir", and
@@ -88,12 +88,11 @@ correctly.
```scenario
given an installed Rust program obnam-benchmark
given file spec.yaml
-when I run obnam-benchmark dump-spec spec.yaml
-then stdout, as JSON, matches spec.json
-
+given file expected.json
+when I run obnam-benchmark spec.yaml --output spec.json
+then JSON files spec.yaml and expected.json match
```
-
```{#spec.yaml .yaml .file .numberLines}
benchmarks:
- benchmark: foo
@@ -101,7 +100,7 @@ benchmarks:
- changes: []
```
-```{#spec.json .yaml .file .numberLines}
+```{#expected.json .yaml .file .numberLines}
{
"benchmarks": [
{