Skip to content
Snippets Groups Projects
Verified Commit 4f69a1d6 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

fix "atomic operations"

parent d6c200f3
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,16 @@ let benchmarks = {
ffs: ["fp128", "bls12-381"],
output: "fri.ndjson",
},
field: {
enabled: true,
nb_measurements: 1000,
output: "field.ndjson",
},
curve_group: {
enabled: true,
nb_measurements: 1000,
output: "curve_group.ndjson",
},
}
```
......
......@@ -85,6 +85,8 @@ export def main [
ffs: list<string>,
output: string,
>,
field: record<enabled: bool, nb_measurements: int, output: string>,
curve_group: record<enabled: bool, nb_measurements: int, output: string>,
>,
--output-dir: path = ".",
] {
......@@ -122,6 +124,24 @@ export def main [
--folding-factors $it.ns
) | to ndjson out> $it.output
}}
| insert field.run {{ |it|
cargo run ...[
--bin field
--release
--package benchmarks
--
--nb-measurements $it.nb_measurements
] out>> ($target | path join $it.output)
}}
| insert curve_group.run {{ |it|
cargo run ...[
--bin curve_group
--release
--package benchmarks
--
--nb-measurements $it.nb_measurements
] out>> ($target | path join $it.output)
}}
let _ = $benchmarks | items { |k, b|
if ($b.enabled? | default true) {
......@@ -131,14 +151,4 @@ export def main [
log warning $"skipping (ansi cyan)($k)(ansi reset)"
}
}
# const OPTIONS = [
# --release
# --package benchmarks
# --
# --nb-measurements 1000
# ]
# cargo run --bin field_operations ...$OPTIONS out> ($target | path join field.ndjson)
# cargo run --bin curve_group_operations ...$OPTIONS out> ($target | path join curve_group.ndjson)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment