Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc + default impl for ResourceTracker trait #1576

Merged
merged 4 commits into from
Jan 22, 2024

Conversation

fmoletta
Copy link
Contributor

Closes #1499

@fmoletta fmoletta marked this pull request as ready for review January 16, 2024 20:06
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (e806ee3) 97.17% compared to head (5d3d2f1) 97.14%.

Files Patch % Lines
vm/src/vm/runners/cairo_runner.rs 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1576      +/-   ##
==========================================
- Coverage   97.17%   97.14%   -0.03%     
==========================================
  Files          91       91              
  Lines       37175    37185      +10     
==========================================
  Hits        36124    36124              
- Misses       1051     1061      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Jan 17, 2024

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 2.288 ± 0.052 2.245 2.427 1.02 ± 0.02
head big_factorial 2.254 ± 0.014 2.239 2.278 1.00
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.247 ± 0.017 2.224 2.268 1.00 ± 0.01
head big_fibonacci 2.240 ± 0.017 2.219 2.261 1.00
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 8.142 ± 0.054 8.099 8.281 1.00
head blake2s_integration_benchmark 8.194 ± 0.087 8.100 8.299 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.305 ± 0.016 2.295 2.350 1.00 ± 0.01
head compare_arrays_200000 2.298 ± 0.026 2.273 2.360 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.449 ± 0.025 1.431 1.514 1.00 ± 0.02
head dict_integration_benchmark 1.444 ± 0.011 1.434 1.462 1.00
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.290 ± 0.010 1.279 1.308 1.00
head field_arithmetic_get_square_benchmark 1.302 ± 0.019 1.283 1.332 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 8.250 ± 0.080 8.150 8.342 1.00 ± 0.01
head integration_builtins 8.226 ± 0.093 8.141 8.339 1.00
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 8.471 ± 0.083 8.387 8.595 1.00
head keccak_integration_benchmark 8.500 ± 0.091 8.380 8.658 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.348 ± 0.056 2.316 2.502 1.01 ± 0.03
head linear_search 2.328 ± 0.020 2.311 2.370 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.589 ± 0.013 1.579 1.621 1.00 ± 0.01
head math_cmp_and_pow_integration_benchmark 1.587 ± 0.009 1.579 1.602 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.446 ± 0.005 1.440 1.455 1.00 ± 0.01
head math_integration_benchmark 1.446 ± 0.019 1.434 1.500 1.00
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.259 ± 0.003 1.255 1.265 1.00
head memory_integration_benchmark 1.265 ± 0.014 1.255 1.300 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.642 ± 0.014 1.624 1.666 1.01 ± 0.01
head operations_with_data_structures_benchmarks 1.621 ± 0.006 1.616 1.632 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 604.1 ± 2.9 601.0 608.6 1.00 ± 0.01
head pedersen 603.4 ± 3.1 600.1 608.5 1.00
Command Mean [s] Min [s] Max [s] Relative
base poseidon_integration_benchmark 1.058 ± 0.004 1.051 1.065 1.00 ± 0.00
head poseidon_integration_benchmark 1.058 ± 0.003 1.053 1.065 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 1.936 ± 0.017 1.919 1.979 1.00 ± 0.01
head secp_integration_benchmark 1.931 ± 0.017 1.916 1.969 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 770.6 ± 2.9 767.1 776.6 1.00 ± 0.00
head set_integration_benchmark 770.1 ± 1.8 768.1 774.0 1.00
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.541 ± 0.034 4.507 4.601 1.00
head uint256_integration_benchmark 4.566 ± 0.039 4.513 4.609 1.01 ± 0.01

@Oppen Oppen added this pull request to the merge queue Jan 22, 2024
Merged via the queue into main with commit 3b5be72 Jan 22, 2024
49 of 50 checks passed
@Oppen Oppen deleted the document-resources-tracker branch January 22, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document ResourceTracker trait
4 participants