Skip to content
Snippets Groups Projects

migrate criterion benchmarks to PLNK

Merged STEVAN Antoine requested to merge migrate-criterion-benchmarks-to-plnk into main
3 files
+ 60
36
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 10
5
@@ -84,13 +84,18 @@ let degrees = seq 0 15 | each { 2 ** $in }
let res = cargo run --example bench_commit -- --nb-measurements 10 ...$degrees
| lines
| each { from nuon }
| update times { into duration }
| update times { each { $in / 1_000_000 * 1ms } }
| insert mean {|it| $it.times | math avg}
| insert stddev {|it| $it.times | into int | into float | math stddev | into int | into duration}
| update label { parse "degree {d}" | into record | get d | into int }
| rename --column { label: "degree", name: "curve" }
| rename --column { label: "x", name: "curve", mean: "measurement", stddev: "error" }
python scripts/plot/bench_commit.py (
$res | group-by curve --to-table | update items { reject curve } | to json
)
python scripts/plot/plot.py ...[
--title "time to commit polynomials for certain curves"
--x-label "degree"
--y-label "time (in ms)"
(
$res | group-by curve --to-table | update items { reject curve } | to json
)
]
```
Loading