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

Add main outout #1642

Closed pefontana closed 6 months ago

pefontana commented 6 months ago

TITLE

Description

Description of the pull request changes and motivation.

Checklist

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 27.02703% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 97.56%. Comparing base (bdcfb1f) to head (efd9d46). Report is 1 commits behind head on main.

:exclamation: Current head efd9d46 differs from pull request most recent head 33c477b. Consider uploading reports for the commit 33c477b to get more accurate results

Files Patch % Lines
cairo1-run/src/cairo_run.rs 25.71% 26 Missing :warning:
cairo1-run/src/main.rs 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1642 +/- ## ========================================== - Coverage 97.67% 97.56% -0.11% ========================================== Files 91 92 +1 Lines 37393 37499 +106 ========================================== + Hits 36523 36587 +64 - Misses 870 912 +42 ```

: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.293 ± 0.019 2.270 2.329 1.00
head big_factorial 2.318 ± 0.017 2.288 2.357 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.300 ± 0.028 2.271 2.377 1.00
head big_fibonacci 2.321 ± 0.018 2.290 2.341 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 8.621 ± 0.132 8.419 8.898 1.00
head blake2s_integration_benchmark 8.863 ± 0.272 8.596 9.291 1.03 ± 0.04
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.377 ± 0.023 2.352 2.435 1.00
head compare_arrays_200000 2.392 ± 0.017 2.372 2.421 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.494 ± 0.016 1.473 1.520 1.01 ± 0.01
head dict_integration_benchmark 1.477 ± 0.006 1.472 1.492 1.00
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.327 ± 0.007 1.315 1.340 1.00
head field_arithmetic_get_square_benchmark 1.332 ± 0.014 1.324 1.371 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 8.566 ± 0.090 8.428 8.649 1.00
head integration_builtins 8.701 ± 0.056 8.638 8.801 1.02 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 8.799 ± 0.114 8.637 9.009 1.00
head keccak_integration_benchmark 8.985 ± 0.223 8.865 9.605 1.02 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.378 ± 0.024 2.342 2.424 1.00
head linear_search 2.386 ± 0.017 2.367 2.424 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.587 ± 0.018 1.571 1.613 1.00
head math_cmp_and_pow_integration_benchmark 1.602 ± 0.006 1.591 1.611 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.449 ± 0.016 1.434 1.475 1.00
head math_integration_benchmark 1.471 ± 0.008 1.461 1.483 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.302 ± 0.013 1.277 1.312 1.00
head memory_integration_benchmark 1.305 ± 0.034 1.285 1.399 1.00 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.634 ± 0.011 1.623 1.656 1.00
head operations_with_data_structures_benchmarks 1.638 ± 0.005 1.631 1.646 1.00 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 596.2 ± 5.7 591.0 606.8 1.00
head pedersen 597.3 ± 4.2 593.4 607.6 1.00 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base poseidon_integration_benchmark 982.0 ± 5.5 974.2 990.7 1.00
head poseidon_integration_benchmark 994.5 ± 8.5 984.6 1014.4 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 1.888 ± 0.019 1.866 1.924 1.00
head secp_integration_benchmark 1.894 ± 0.006 1.885 1.906 1.00 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 731.9 ± 5.2 724.8 743.4 1.00
head set_integration_benchmark 734.5 ± 7.0 728.3 751.3 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.740 ± 0.050 4.690 4.870 1.00
head uint256_integration_benchmark 4.779 ± 0.120 4.710 5.114 1.01 ± 0.03
fmoletta commented 6 months ago

Replaced by #1646