Skip to content
Snippets Groups Projects

migrate criterion benchmarks to PLNK

Merged STEVAN Antoine requested to merge migrate-criterion-benchmarks-to-plnk into main
1 file
+ 20
40
Compare changes
  • Side-by-side
  • Inline
+ 20
40
@@ -70,47 +70,27 @@ let linalg = open linalg.ndjson
| flatten --all label
| into int n
python scripts/plot/plot.py ...[
--title "time to inverse an nxn matrix on certain curves"
--x-label "size"
--y-label "time (in ms)"
(
$linalg
| where op == inverse
| rename --column { n: "x", name: "curve", mean: "measurement", stddev: "error" }
| group-by curve --to-table
| update items { reject curve }
| to json
)
]
for it in [
[op, title];
python scripts/plot/plot.py ...[
--title "time to transpose an nxn matrix on certain curves"
--x-label "size"
--y-label "time (in ms)"
(
$linalg
| where op == transpose
| rename --column { n: "x", name: "curve", mean: "measurement", stddev: "error" }
| group-by curve --to-table
| update items { reject curve }
| to json
)
]
python scripts/plot/plot.py ...[
--title "time to multiply two nxn matrices on certain curves"
--x-label "size"
--y-label "time (in ms)"
(
$linalg
| where op == mul
| rename --column { n: "x", name: "curve", mean: "measurement", stddev: "error" }
| group-by curve --to-table
| update items { reject curve }
| to json
)
]
["inverse", "time to inverse an nxn matrix on certain curves"],
["transpose", "time to transpose an nxn matrix on certain curves"],
["mul", "time to multiply two nxn matrices on certain curves"]
] {
python scripts/plot/plot.py ...[
--title $it.title
--x-label "size"
--y-label "time (in ms)"
(
$linalg
| where op == $it.op
| rename --column { n: "x", name: "curve", mean: "measurement", stddev: "error" }
| group-by curve --to-table
| update items { reject curve }
| to json
)
]
}
```
## oneshot benchmarks
Loading