Skip to content

Commit

Permalink
fix: permute rc param and fib_n
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Oct 31, 2023
1 parent a1e5fd3 commit 35c8010
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions benches/fibonacci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct ProveParams {

impl ProveParams {
fn name(&self) -> String {
format!("Fibonacci-num={}", self.fib_n)
format!("Fibonacci-rc={}", self.reduction_count)
}
}

Expand Down Expand Up @@ -99,7 +99,7 @@ fn fibo_prove<M: measurement::Measurement>(
c.bench_with_input(
BenchmarkId::new(
prove_params.name(),
format!("rc-{}/{sha}-{date}", prove_params.reduction_count),
format!("num-{}/{sha}-{date}", prove_params.fib_n),
),
&prove_params,
|b, prove_params| {
Expand Down
4 changes: 2 additions & 2 deletions benches/fibonacci_lem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct ProveParams {

impl ProveParams {
fn name(&self) -> String {
format!("Fibonacci-num={}", self.fib_n)
format!("Fibonacci-rc={}", self.reduction_count)
}
}

Expand Down Expand Up @@ -94,7 +94,7 @@ fn fibo_prove<M: measurement::Measurement>(
c.bench_with_input(
BenchmarkId::new(
prove_params.name(),
format!("rc-{}/{sha}-{date}", prove_params.reduction_count),
format!("num-{}/{sha}-{date}", prove_params.fib_n),
),
&prove_params,
|b, prove_params| {
Expand Down
7 changes: 7 additions & 0 deletions lem.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{"reason":"benchmark-complete","id":"LEM Prove/Fibonacci-num=100/rc-100/a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","report_directory":"/Users/huitseeker/tmp/lurk-rs/target/criterion/reports/LEM Prove/Fibonacci-num=100/rc-100_a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","iteration_count":[1,1,1,1,1,1,1,1,1,1],"measured_values":[12251366750.0,11929582583.0,12121600125.0,12372472834.0,12068640375.0,12054447750.0,12141739833.0,12101548875.0,11896986375.0,12094704833.0],"unit":"ns","throughput":[{"per_iteration":1700,"unit":"elements"}],"typical":{"estimate":12103309033.3,"lower_bound":12024113950.0,"upper_bound":12187921411.1125,"unit":"ns"},"mean":{"estimate":12103309033.3,"lower_bound":12024113950.0,"upper_bound":12187921411.1125,"unit":"ns"},"median":{"estimate":12098126854.0,"lower_bound":11999111479.0,"upper_bound":12186483437.5,"unit":"ns"},"median_abs_dev":{"estimate":64709619.9790746,"lower_bound":19937479.60563898,"upper_bound":243973223.15610945,"unit":"ns"},"slope":null,"change":null}
{"reason":"benchmark-complete","id":"LEM Prove/Fibonacci-num=100/rc-600/a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","report_directory":"/Users/huitseeker/tmp/lurk-rs/target/criterion/reports/LEM Prove/Fibonacci-num=100/rc-600_a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","iteration_count":[2,2,2,2,2,2,2,2,2,2],"measured_values":[19339451917.0,19017384333.0,18679197750.0,18920260167.0,18979207834.0,18804455751.0,18838428626.0,19496719833.0,19715022000.0,19541655000.0],"unit":"ns","throughput":[{"per_iteration":1800,"unit":"elements"}],"typical":{"estimate":9566589160.55,"lower_bound":9464587506.09125,"upper_bound":9675401150.0,"unit":"ns"},"mean":{"estimate":9566589160.55,"lower_bound":9464587506.09125,"upper_bound":9675401150.0,"unit":"ns"},"median":{"estimate":9499148041.75,"lower_bound":9419214313.0,"upper_bound":9748359916.5,"unit":"ns"},"median_abs_dev":{"estimate":190120713.17758262,"lower_bound":35999071.488788724,"upper_bound":273242896.79081887,"unit":"ns"},"slope":null,"change":null}
{"reason":"benchmark-complete","id":"LEM Prove/Fibonacci-num=100/rc-700/a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","report_directory":"/Users/huitseeker/tmp/lurk-rs/target/criterion/reports/LEM Prove/Fibonacci-num=100/rc-700_a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","iteration_count":[2,2,2,2,2,2,2,2,2,2],"measured_values":[22468142542.0,22181137792.0,22239863917.0,22275568000.0,22313436000.0,22118978459.0,22268503833.0,22253090959.0,22151293583.0,22263009958.0],"unit":"ns","throughput":[{"per_iteration":2100,"unit":"elements"}],"typical":{"estimate":11126651252.15,"lower_bound":11099966019.755,"upper_bound":11156744616.99625,"unit":"ns"},"mean":{"estimate":11126651252.15,"lower_bound":11099966019.755,"upper_bound":11156744616.99625,"unit":"ns"},"median":{"estimate":11129025229.25,"lower_bound":11090568896.0,"upper_bound":11145484958.25,"unit":"ns"},"median_abs_dev":{"estimate":27269492.07981974,"lower_bound":5236666.904130578,"upper_bound":76408639.65472163,"unit":"ns"},"slope":null,"change":null}
{"reason":"benchmark-complete","id":"LEM Prove/Fibonacci-num=100/rc-800/a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","report_directory":"/Users/huitseeker/tmp/lurk-rs/target/criterion/reports/LEM Prove/Fibonacci-num=100/rc-800_a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","iteration_count":[1,1,1,1,1,1,1,1,1,1],"measured_values":[11928509500.0,12004839417.0,11986167916.0,11915395916.0,12473430792.0,12691525208.0,12460165792.0,12288616666.0,12565960042.0,12371659167.0],"unit":"ns","throughput":[{"per_iteration":2400,"unit":"elements"}],"typical":{"estimate":12268627041.6,"lower_bound":12101514050.1,"upper_bound":12436490161.664999,"unit":"ns"},"mean":{"estimate":12268627041.6,"lower_bound":12101514050.1,"upper_bound":12436490161.664999,"unit":"ns"},"median":{"estimate":12330137916.5,"lower_bound":11966674458.5,"upper_bound":12513062917.0,"unit":"ns"},"median_abs_dev":{"estimate":415958711.92775667,"lower_bound":56583366.46754444,"upper_bound":474233383.9672744,"unit":"ns"},"slope":null,"change":null}
{"reason":"benchmark-complete","id":"LEM Prove/Fibonacci-num=100/rc-900/a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","report_directory":"/Users/huitseeker/tmp/lurk-rs/target/criterion/reports/LEM Prove/Fibonacci-num=100/rc-900_a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","iteration_count":[1,1,1,1,1,1,1,1,1,1],"measured_values":[9621231875.0,9387289916.0,9208357791.0,9499800333.0,9034507417.0,9297322292.0,9675551125.0,9435138666.0,9172776834.0,9643023166.0],"unit":"ns","throughput":[{"per_iteration":1800,"unit":"elements"}],"typical":{"estimate":9397499941.5,"lower_bound":9266870087.677502,"upper_bound":9522957320.6,"unit":"ns"},"mean":{"estimate":9397499941.5,"lower_bound":9266870087.677502,"upper_bound":9522957320.6,"unit":"ns"},"median":{"estimate":9411214291.0,"lower_bound":9208357791.0,"upper_bound":9621231875.0,"unit":"ns"},"median_abs_dev":{"estimate":306063553.03548574,"lower_bound":52752325.911659,"upper_bound":353507367.47218966,"unit":"ns"},"slope":null,"change":null}
{"reason":"benchmark-complete","id":"LEM Prove/Fibonacci-num=200/rc-100/a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","report_directory":"/Users/huitseeker/tmp/lurk-rs/target/criterion/reports/LEM Prove/Fibonacci-num=200/rc-100_a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","iteration_count":[1,1,1,1,1,1,1,1,1,1],"measured_values":[23358615584.0,23541648583.0,23704715125.0,23782864000.0,23640297875.0,23510890333.0,23256973000.0,23639561208.0,23174624750.0,23374390375.0],"unit":"ns","throughput":[{"per_iteration":3300,"unit":"elements"}],"typical":{"estimate":23498458083.3,"lower_bound":23378943217.3425,"upper_bound":23614080333.2,"unit":"ns"},"mean":{"estimate":23498458083.3,"lower_bound":23378943217.3425,"upper_bound":23614080333.2,"unit":"ns"},"median":{"estimate":23526269458.0,"lower_bound":23315681687.5,"upper_bound":23672138166.5,"unit":"ns"},"median_abs_dev":{"estimate":236869776.81882083,"lower_bound":48298597.81462848,"upper_bound":331911231.3698977,"unit":"ns"},"slope":null,"change":null}
{"reason":"benchmark-complete","id":"LEM Prove/Fibonacci-num=200/rc-600/a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","report_directory":"/Users/huitseeker/tmp/lurk-rs/target/criterion/reports/LEM Prove/Fibonacci-num=200/rc-600_a1e5fd36e965b57721f56629d69c5c2b3448ce55-2023-10-31","iteration_count":[1,1,1,1,1,1,1,1,1,1],"measured_values":[21029999791.0,22179996083.0,21929151541.0,23262291375.0,22591527041.0,21617375042.0,20380224708.0,21417574334.0,20851308458.0,21754670166.0],"unit":"ns","throughput":[{"per_iteration":3600,"unit":"elements"}],"typical":{"estimate":21701411853.9,"lower_bound":21215358916.4,"upper_bound":22214798099.6,"unit":"ns"},"mean":{"estimate":21701411853.9,"lower_bound":21215358916.4,"upper_bound":22214798099.6,"unit":"ns"},"median":{"estimate":21686022604.0,"lower_bound":21029999791.0,"upper_bound":22260339291.0,"unit":"ns"},"median_abs_dev":{"estimate":852492236.1248374,"lower_bound":231119914.6055013,"upper_bound":1444277728.0763447,"unit":"ns"},"slope":null,"change":null}

0 comments on commit 35c8010

Please sign in to comment.