summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-12-05 09:18:50 +0200
committerLars Wirzenius <liw@liw.fi>2021-12-05 09:18:50 +0200
commit0ae698ba8e78f447186c9390c74af8155505784e (patch)
tree5d94036352ef6a9dd6525723b6271bc0635fe88d
parentca4a96471a26c5d3101743bd679a3dac40f3d15e (diff)
downloadobnam-benchmark-0ae698ba8e78f447186c9390c74af8155505784e.tar.gz
fix: expected spec-as-JSON in subplot
Sponsored-by: author
-rw-r--r--obnam-benchmark.md40
1 files changed, 12 insertions, 28 deletions
diff --git a/obnam-benchmark.md b/obnam-benchmark.md
index 1f1f353..cf00fc4 100644
--- a/obnam-benchmark.md
+++ b/obnam-benchmark.md
@@ -89,45 +89,29 @@ correctly.
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
+```
+
```{#spec.yaml .yaml .file .numberLines}
benchmarks:
- benchmark: foo
backups:
- - change:
- - create:
- files: 1j
- size: 1K
- - create:
- files: 2
- size: 2M
- - create:
- files: 3
- size: 3G
+ - changes: []
```
```{#spec.json .yaml .file .numberLines}
{
- "benchmarks": [
- {
- "benchmark": "foo",
- "backups": [
- [
- {
- "change": { "files": 1, "size": 1024 }
- },
- {
- "change": { "files": 2, "size": 2048 }
- },
- {
- "change": { "files": 3, "size": 3072 }
- }
- ]
- }
+ "benchmarks": [
+ {
+ "benchmark": "foo",
+ "backups": [
+ {
+ "changes": []
+ }
+ ]
+ }
]
}
```