Skip to content

Conversation

@gabrielbosio
Copy link
Collaborator

No description provided.

@gabrielbosio gabrielbosio changed the title Pin types-rs version Pin types-rs version to the one set in lockfile Jul 23, 2025
@github-actions
Copy link

github-actions bot commented Jul 23, 2025

**Hyper Thereading Benchmark results**




hyperfine -r 2 -n "hyper_threading_main threads: 1" 'RAYON_NUM_THREADS=1 ./hyper_threading_main' -n "hyper_threading_pr threads: 1" 'RAYON_NUM_THREADS=1 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 1
  Time (mean ± σ):     25.570 s ±  0.013 s    [User: 24.777 s, System: 0.791 s]
  Range (min … max):   25.561 s … 25.579 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 1
  Time (mean ± σ):     25.594 s ±  0.067 s    [User: 24.816 s, System: 0.775 s]
  Range (min … max):   25.546 s … 25.641 s    2 runs
 
Summary
  hyper_threading_main threads: 1 ran
    1.00 ± 0.00 times faster than hyper_threading_pr threads: 1




hyperfine -r 2 -n "hyper_threading_main threads: 2" 'RAYON_NUM_THREADS=2 ./hyper_threading_main' -n "hyper_threading_pr threads: 2" 'RAYON_NUM_THREADS=2 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 2
  Time (mean ± σ):     14.264 s ±  0.014 s    [User: 24.906 s, System: 0.814 s]
  Range (min … max):   14.254 s … 14.274 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 2
  Time (mean ± σ):     14.291 s ±  0.032 s    [User: 24.945 s, System: 0.813 s]
  Range (min … max):   14.269 s … 14.314 s    2 runs
 
Summary
  hyper_threading_main threads: 2 ran
    1.00 ± 0.00 times faster than hyper_threading_pr threads: 2




hyperfine -r 2 -n "hyper_threading_main threads: 4" 'RAYON_NUM_THREADS=4 ./hyper_threading_main' -n "hyper_threading_pr threads: 4" 'RAYON_NUM_THREADS=4 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 4
  Time (mean ± σ):     10.418 s ±  0.046 s    [User: 37.483 s, System: 0.991 s]
  Range (min … max):   10.385 s … 10.451 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 4
  Time (mean ± σ):     10.258 s ±  0.013 s    [User: 37.532 s, System: 0.976 s]
  Range (min … max):   10.249 s … 10.267 s    2 runs
 
Summary
  hyper_threading_pr threads: 4 ran
    1.02 ± 0.00 times faster than hyper_threading_main threads: 4




hyperfine -r 2 -n "hyper_threading_main threads: 6" 'RAYON_NUM_THREADS=6 ./hyper_threading_main' -n "hyper_threading_pr threads: 6" 'RAYON_NUM_THREADS=6 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 6
  Time (mean ± σ):     10.466 s ±  0.026 s    [User: 37.783 s, System: 0.985 s]
  Range (min … max):   10.448 s … 10.485 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 6
  Time (mean ± σ):     10.481 s ±  0.314 s    [User: 37.763 s, System: 0.990 s]
  Range (min … max):   10.259 s … 10.703 s    2 runs
 
Summary
  hyper_threading_main threads: 6 ran
    1.00 ± 0.03 times faster than hyper_threading_pr threads: 6




hyperfine -r 2 -n "hyper_threading_main threads: 8" 'RAYON_NUM_THREADS=8 ./hyper_threading_main' -n "hyper_threading_pr threads: 8" 'RAYON_NUM_THREADS=8 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 8
  Time (mean ± σ):     10.152 s ±  0.124 s    [User: 38.464 s, System: 1.014 s]
  Range (min … max):   10.064 s … 10.240 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 8
  Time (mean ± σ):     10.184 s ±  0.074 s    [User: 38.456 s, System: 1.007 s]
  Range (min … max):   10.132 s … 10.236 s    2 runs
 
Summary
  hyper_threading_main threads: 8 ran
    1.00 ± 0.01 times faster than hyper_threading_pr threads: 8




hyperfine -r 2 -n "hyper_threading_main threads: 16" 'RAYON_NUM_THREADS=16 ./hyper_threading_main' -n "hyper_threading_pr threads: 16" 'RAYON_NUM_THREADS=16 ./hyper_threading_pr'
Benchmark 1: hyper_threading_main threads: 16
  Time (mean ± σ):     10.351 s ±  0.084 s    [User: 38.599 s, System: 1.120 s]
  Range (min … max):   10.291 s … 10.410 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 16
  Time (mean ± σ):     10.228 s ±  0.015 s    [User: 38.689 s, System: 1.094 s]
  Range (min … max):   10.218 s … 10.238 s    2 runs
 
Summary
  hyper_threading_pr threads: 16 ran
    1.01 ± 0.01 times faster than hyper_threading_main threads: 16


@github-actions
Copy link

github-actions bot commented Jul 23, 2025

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 2.119 ± 0.024 2.092 2.159 1.01 ± 0.01
head big_factorial 2.101 ± 0.007 2.086 2.109 1.00
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.042 ± 0.021 2.019 2.097 1.01 ± 0.01
head big_fibonacci 2.025 ± 0.006 2.017 2.035 1.00
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 7.764 ± 0.033 7.708 7.822 1.00 ± 0.01
head blake2s_integration_benchmark 7.760 ± 0.029 7.711 7.801 1.00
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.172 ± 0.019 2.156 2.222 1.02 ± 0.01
head compare_arrays_200000 2.140 ± 0.014 2.128 2.174 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.409 ± 0.015 1.395 1.438 1.01 ± 0.01
head dict_integration_benchmark 1.400 ± 0.005 1.393 1.409 1.00
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.222 ± 0.004 1.216 1.228 1.00
head field_arithmetic_get_square_benchmark 1.223 ± 0.008 1.215 1.242 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 7.889 ± 0.043 7.842 7.945 1.00
head integration_builtins 7.896 ± 0.092 7.806 8.057 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 8.066 ± 0.052 7.993 8.160 1.00 ± 0.01
head keccak_integration_benchmark 8.063 ± 0.046 7.983 8.142 1.00
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.167 ± 0.030 2.142 2.232 1.00 ± 0.01
head linear_search 2.159 ± 0.010 2.140 2.173 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.487 ± 0.008 1.475 1.501 1.00 ± 0.01
head math_cmp_and_pow_integration_benchmark 1.484 ± 0.010 1.470 1.506 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.448 ± 0.015 1.432 1.477 1.01 ± 0.01
head math_integration_benchmark 1.433 ± 0.005 1.424 1.441 1.00
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.210 ± 0.002 1.207 1.212 1.01 ± 0.00
head memory_integration_benchmark 1.200 ± 0.004 1.195 1.206 1.00
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.551 ± 0.005 1.542 1.560 1.00
head operations_with_data_structures_benchmarks 1.569 ± 0.013 1.557 1.597 1.01 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 526.2 ± 0.8 525.2 527.7 1.00
head pedersen 526.9 ± 2.0 524.5 531.4 1.00 ± 0.00
Command Mean [ms] Min [ms] Max [ms] Relative
base poseidon_integration_benchmark 605.1 ± 3.9 600.5 609.6 1.01 ± 0.01
head poseidon_integration_benchmark 598.7 ± 3.4 595.6 607.1 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 1.815 ± 0.007 1.810 1.830 1.00
head secp_integration_benchmark 1.816 ± 0.010 1.807 1.840 1.00 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 663.2 ± 8.5 651.9 675.6 1.00
head set_integration_benchmark 668.5 ± 6.6 658.3 677.1 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.285 ± 0.113 4.237 4.605 1.01 ± 0.03
head uint256_integration_benchmark 4.246 ± 0.034 4.220 4.341 1.00

@gabrielbosio gabrielbosio marked this pull request as ready for review July 23, 2025 19:30

#### Upcoming Changes

* chore: Pin types-rs version to the one set in lockfile [#2140](https://github.com/lambdaclass/cairo-vm/pull/2140)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also add that types-rs was updated to 0.1.8, right?

Copy link
Collaborator Author

@gabrielbosio gabrielbosio Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because types-rs was not pinned, it was already updated to 0.1.8 before this PR, so I am not sure this counts as a dependency update.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see

@codecov
Copy link

codecov bot commented Jul 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.67%. Comparing base (eb25534) to head (12c200e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2140   +/-   ##
=======================================
  Coverage   96.67%   96.67%           
=======================================
  Files         103      103           
  Lines       43568    43568           
=======================================
  Hits        42118    42118           
  Misses       1450     1450           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gabrielbosio gabrielbosio added this pull request to the merge queue Jul 23, 2025
Merged via the queue into main with commit 5e0ed72 Jul 23, 2025
93 checks passed
@gabrielbosio gabrielbosio deleted the pin_types_rs_version branch July 23, 2025 21:06
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.

4 participants