Skip to content
Snippets Groups Projects

migrate criterion benchmarks to PLNK

Merged STEVAN Antoine requested to merge migrate-criterion-benchmarks-to-plnk into main
2 files
+ 23
23
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
23
@@ -28,30 +28,8 @@ cargo run --example bench_curve_group_operations -- --nb-measurements 1000
| save --force curve_group.ndjson
```
```nushell
def read-atomic-ops [
--include: list<string> = [], --exclude: list<string> = []
]: list -> record {
let raw = $in
| insert t {|it| $it.times |math avg}
| reject times
| rename --column { label: "group", name: "species", t: "measurement" }
use scripts/parse.nu read-atomic-ops
let included = if $include != [] {
$raw | where group in $include
} else {
$raw
}
$included
| where group not-in $exclude
| group-by group --to-table
| reject items.group
| update items { transpose -r | into record }
| transpose -r
| into record
}
```
```nushell
python scripts/plot/multi_bar.py --title "simple field operations" -l "time (in ns)" (
open field.ndjson
| read-atomic-ops --exclude [ "exponentiation", "legendre", "inverse", "sqrt" ]
Loading