lambdaclass / cairo-vm

cairo-vm is a Rust implementation of the Cairo VM. Cairo (CPU Algebraic Intermediate Representation) is a programming language for writing provable programs, where one party can prove to another that a certain computation was executed correctly without the need for this party to re-execute the same program.
https://lambdaclass.github.io/cairo-vm
Apache License 2.0
504 stars 138 forks source link

Restore `flamegraph` target #1615

Closed fmoletta closed 6 months ago

fmoletta commented 6 months ago

Installing flamegraph with locked dependencies works for rust 1.70, so we can restore this target

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (28e055e) 97.16% compared to head (cf69a47) 97.16%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1615 +/- ## ======================================= Coverage 97.16% 97.16% ======================================= Files 92 92 Lines 37369 37369 ======================================= Hits 36309 36309 Misses 1060 1060 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 6 months ago

Benchmark Results for unmodified programs :rocket:

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 2.291 ± 0.026 2.256 2.326 1.01 ± 0.01
head big_factorial 2.263 ± 0.017 2.244 2.288 1.00
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.246 ± 0.011 2.234 2.270 1.00
head big_fibonacci 2.252 ± 0.019 2.230 2.278 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 8.229 ± 0.084 8.160 8.370 1.00
head blake2s_integration_benchmark 8.235 ± 0.098 8.152 8.407 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.311 ± 0.024 2.289 2.351 1.02 ± 0.01
head compare_arrays_200000 2.276 ± 0.016 2.265 2.309 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.450 ± 0.007 1.445 1.469 1.00 ± 0.01
head dict_integration_benchmark 1.450 ± 0.011 1.440 1.471 1.00
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.289 ± 0.012 1.272 1.304 1.00
head field_arithmetic_get_square_benchmark 1.295 ± 0.019 1.276 1.343 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 8.282 ± 0.088 8.180 8.413 1.00 ± 0.02
head integration_builtins 8.266 ± 0.102 8.162 8.464 1.00
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 8.525 ± 0.092 8.437 8.657 1.00
head keccak_integration_benchmark 8.631 ± 0.179 8.451 9.076 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.349 ± 0.011 2.340 2.376 1.01 ± 0.01
head linear_search 2.325 ± 0.016 2.302 2.348 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.586 ± 0.008 1.577 1.598 1.00
head math_cmp_and_pow_integration_benchmark 1.590 ± 0.017 1.569 1.623 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.453 ± 0.006 1.446 1.464 1.01 ± 0.01
head math_integration_benchmark 1.438 ± 0.012 1.429 1.471 1.00
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.284 ± 0.011 1.274 1.305 1.02 ± 0.01
head memory_integration_benchmark 1.265 ± 0.008 1.253 1.273 1.00
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.611 ± 0.010 1.597 1.628 1.00 ± 0.01
head operations_with_data_structures_benchmarks 1.611 ± 0.009 1.600 1.633 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 605.6 ± 3.0 602.4 612.4 1.00
head pedersen 606.0 ± 2.0 603.8 610.2 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base poseidon_integration_benchmark 1.064 ± 0.006 1.053 1.076 1.00 ± 0.01
head poseidon_integration_benchmark 1.060 ± 0.002 1.057 1.064 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 1.917 ± 0.007 1.904 1.930 1.00
head secp_integration_benchmark 1.924 ± 0.009 1.913 1.939 1.00 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 773.2 ± 2.4 770.6 776.6 1.00 ± 0.01
head set_integration_benchmark 772.7 ± 9.1 765.9 794.4 1.00
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.566 ± 0.037 4.524 4.617 1.00 ± 0.01
head uint256_integration_benchmark 4.549 ± 0.035 4.515 4.601 1.00