Skip to content

[DNM] Always use a normal segment for first SegmentArena segment #2029

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

Closed
wants to merge 1 commit into from

Conversation

gabrielbosio
Copy link
Collaborator

Clone of #1845

Copy link

github-actions bot commented Mar 26, 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 ± σ):     26.178 s ±  0.017 s    [User: 25.426 s, System: 0.750 s]
  Range (min … max):   26.166 s … 26.190 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 1
  Time (mean ± σ):     26.259 s ±  0.008 s    [User: 25.495 s, System: 0.761 s]
  Range (min … max):   26.254 s … 26.265 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.555 s ±  0.075 s    [User: 25.576 s, System: 0.768 s]
  Range (min … max):   14.502 s … 14.608 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 2
  Time (mean ± σ):     14.607 s ±  0.006 s    [User: 25.619 s, System: 0.798 s]
  Range (min … max):   14.603 s … 14.612 s    2 runs
 
Summary
  hyper_threading_main threads: 2 ran
    1.00 ± 0.01 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.490 s ±  0.386 s    [User: 37.807 s, System: 0.951 s]
  Range (min … max):   10.217 s … 10.763 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 4
  Time (mean ± σ):     10.376 s ±  0.069 s    [User: 37.659 s, System: 0.910 s]
  Range (min … max):   10.328 s … 10.425 s    2 runs
 
Summary
  hyper_threading_pr threads: 4 ran
    1.01 ± 0.04 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.448 s ±  0.044 s    [User: 38.237 s, System: 0.953 s]
  Range (min … max):   10.417 s … 10.479 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 6
  Time (mean ± σ):     10.444 s ±  0.461 s    [User: 38.028 s, System: 0.893 s]
  Range (min … max):   10.118 s … 10.769 s    2 runs
 
Summary
  hyper_threading_pr threads: 6 ran
    1.00 ± 0.04 times faster than hyper_threading_main 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.200 s ±  0.139 s    [User: 38.433 s, System: 0.924 s]
  Range (min … max):   10.102 s … 10.298 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 8
  Time (mean ± σ):     10.284 s ±  0.094 s    [User: 38.287 s, System: 0.925 s]
  Range (min … max):   10.217 s … 10.351 s    2 runs
 
Summary
  hyper_threading_main threads: 8 ran
    1.01 ± 0.02 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.358 s ±  0.041 s    [User: 38.661 s, System: 1.079 s]
  Range (min … max):   10.329 s … 10.387 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 16
  Time (mean ± σ):     10.199 s ±  0.048 s    [User: 38.721 s, System: 1.018 s]
  Range (min … max):   10.165 s … 10.233 s    2 runs
 
Summary
  hyper_threading_pr threads: 16 ran
    1.02 ± 0.01 times faster than hyper_threading_main threads: 16


Copy link

github-actions bot commented Mar 26, 2025

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 2.094 ± 0.006 2.087 2.106 1.00
head big_factorial 2.108 ± 0.032 2.087 2.177 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.018 ± 0.004 2.011 2.024 1.00
head big_fibonacci 2.029 ± 0.012 2.020 2.061 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 7.583 ± 0.118 7.474 7.783 1.02 ± 0.02
head blake2s_integration_benchmark 7.437 ± 0.077 7.353 7.629 1.00
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.159 ± 0.008 2.143 2.172 1.00 ± 0.01
head compare_arrays_200000 2.149 ± 0.013 2.121 2.168 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.437 ± 0.011 1.426 1.458 1.00 ± 0.01
head dict_integration_benchmark 1.430 ± 0.006 1.424 1.442 1.00
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.207 ± 0.003 1.202 1.212 1.00
head field_arithmetic_get_square_benchmark 1.207 ± 0.015 1.194 1.240 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 7.557 ± 0.030 7.509 7.613 1.00
head integration_builtins 7.575 ± 0.084 7.488 7.742 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 7.826 ± 0.022 7.793 7.857 1.00 ± 0.00
head keccak_integration_benchmark 7.789 ± 0.029 7.732 7.829 1.00
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.135 ± 0.013 2.118 2.162 1.00
head linear_search 2.152 ± 0.015 2.136 2.190 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.525 ± 0.019 1.511 1.570 1.00 ± 0.01
head math_cmp_and_pow_integration_benchmark 1.518 ± 0.006 1.508 1.526 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.462 ± 0.005 1.455 1.468 1.00
head math_integration_benchmark 1.464 ± 0.009 1.450 1.480 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.213 ± 0.002 1.210 1.216 1.00 ± 0.00
head memory_integration_benchmark 1.209 ± 0.003 1.204 1.214 1.00
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.575 ± 0.007 1.567 1.587 1.00 ± 0.01
head operations_with_data_structures_benchmarks 1.574 ± 0.016 1.556 1.616 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 533.7 ± 7.6 528.6 554.8 1.00 ± 0.01
head pedersen 532.9 ± 1.5 530.9 536.4 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base poseidon_integration_benchmark 630.4 ± 2.6 627.0 636.5 1.00
head poseidon_integration_benchmark 633.0 ± 7.3 628.0 653.2 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 1.862 ± 0.009 1.853 1.884 1.01 ± 0.01
head secp_integration_benchmark 1.848 ± 0.006 1.841 1.857 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 660.0 ± 7.3 652.1 670.8 1.00
head set_integration_benchmark 661.5 ± 4.5 653.4 667.0 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.188 ± 0.024 4.158 4.219 1.01 ± 0.01
head uint256_integration_benchmark 4.146 ± 0.019 4.128 4.185 1.00

Copy link

codecov bot commented Mar 26, 2025

Codecov Report

Attention: Patch coverage is 65.51724% with 10 lines in your changes missing coverage. Please review.

Project coverage is 96.52%. Comparing base (82e465b) to head (e2f4a46).

Files with missing lines Patch % Lines
...t_processor/cairo_1_hint_processor/dict_manager.rs 56.52% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2029      +/-   ##
==========================================
- Coverage   96.54%   96.52%   -0.03%     
==========================================
  Files         102      102              
  Lines       42791    42819      +28     
==========================================
+ Hits        41312    41330      +18     
- Misses       1479     1489      +10     

☔ 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 force-pushed the segment-arena-relocation-fix-upstream branch 2 times, most recently from 6a6cdc0 to e2f4a46 Compare March 28, 2025 22:03
@gabrielbosio gabrielbosio force-pushed the segment-arena-relocation-fix-upstream branch from e2f4a46 to b8f841e Compare April 3, 2025 14:19
@gabrielbosio
Copy link
Collaborator Author

Closing to see if by opening another PR we can trigger the failing jobs correctly.

@gabrielbosio gabrielbosio deleted the segment-arena-relocation-fix-upstream branch April 3, 2025 14:53
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.

2 participants