Skip to content

Conversation

@FrancoGiachetta
Copy link
Contributor

Release version 2.0.0-rc4

Description

Description of the pull request changes and motivation.

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.
    • CHANGELOG has been updated.

@github-actions
Copy link

**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 ± σ):     32.198 s ±  0.015 s    [User: 31.357 s, System: 0.838 s]
  Range (min … max):   32.188 s … 32.209 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 1
  Time (mean ± σ):     32.311 s ±  0.039 s    [User: 31.492 s, System: 0.815 s]
  Range (min … max):   32.283 s … 32.338 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 ± σ):     17.876 s ±  0.041 s    [User: 31.224 s, System: 0.858 s]
  Range (min … max):   17.848 s … 17.905 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 2
  Time (mean ± σ):     18.012 s ±  0.033 s    [User: 31.401 s, System: 0.853 s]
  Range (min … max):   17.989 s … 18.036 s    2 runs
 
Summary
  hyper_threading_main threads: 2 ran
    1.01 ± 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 ± σ):     12.503 s ±  0.329 s    [User: 43.746 s, System: 1.049 s]
  Range (min … max):   12.270 s … 12.735 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 4
  Time (mean ± σ):     12.637 s ±  0.362 s    [User: 44.114 s, System: 1.047 s]
  Range (min … max):   12.380 s … 12.893 s    2 runs
 
Summary
  hyper_threading_main threads: 4 ran
    1.01 ± 0.04 times faster than hyper_threading_pr 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 ± σ):     11.823 s ±  0.164 s    [User: 44.308 s, System: 1.020 s]
  Range (min … max):   11.708 s … 11.939 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 6
  Time (mean ± σ):     12.331 s ±  0.215 s    [User: 44.540 s, System: 1.060 s]
  Range (min … max):   12.179 s … 12.483 s    2 runs
 
Summary
  hyper_threading_main threads: 6 ran
    1.04 ± 0.02 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 ± σ):     12.124 s ±  0.175 s    [User: 44.194 s, System: 1.089 s]
  Range (min … max):   12.000 s … 12.248 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 8
  Time (mean ± σ):     12.028 s ±  0.071 s    [User: 44.774 s, System: 1.085 s]
  Range (min … max):   11.978 s … 12.079 s    2 runs
 
Summary
  hyper_threading_pr threads: 8 ran
    1.01 ± 0.02 times faster than hyper_threading_main 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 ± σ):     11.892 s ±  0.031 s    [User: 44.607 s, System: 1.127 s]
  Range (min … max):   11.870 s … 11.913 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 16
  Time (mean ± σ):     11.795 s ±  0.016 s    [User: 45.071 s, System: 1.114 s]
  Range (min … max):   11.784 s … 11.806 s    2 runs
 
Summary
  hyper_threading_pr threads: 16 ran
    1.01 ± 0.00 times faster than hyper_threading_main threads: 16


@github-actions
Copy link

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 2.485 ± 0.023 2.452 2.515 1.00
head big_factorial 2.533 ± 0.059 2.465 2.656 1.02 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.447 ± 0.044 2.395 2.550 1.00
head big_fibonacci 2.477 ± 0.076 2.419 2.652 1.01 ± 0.04
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 9.261 ± 0.344 8.974 10.082 1.01 ± 0.04
head blake2s_integration_benchmark 9.186 ± 0.086 9.071 9.311 1.00
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.573 ± 0.042 2.516 2.658 1.00
head compare_arrays_200000 2.596 ± 0.028 2.551 2.652 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.707 ± 0.043 1.668 1.795 1.01 ± 0.03
head dict_integration_benchmark 1.688 ± 0.023 1.666 1.736 1.00
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.415 ± 0.014 1.397 1.439 1.00
head field_arithmetic_get_square_benchmark 1.442 ± 0.037 1.408 1.534 1.02 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 9.186 ± 0.083 9.028 9.277 1.00
head integration_builtins 9.568 ± 0.441 9.207 10.400 1.04 ± 0.05
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 9.445 ± 0.072 9.358 9.541 1.00
head keccak_integration_benchmark 9.698 ± 0.225 9.471 10.213 1.03 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.574 ± 0.018 2.539 2.593 1.00
head linear_search 2.592 ± 0.033 2.551 2.633 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.750 ± 0.040 1.718 1.852 1.00
head math_cmp_and_pow_integration_benchmark 1.760 ± 0.033 1.730 1.829 1.01 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.697 ± 0.020 1.675 1.737 1.00
head math_integration_benchmark 1.735 ± 0.043 1.682 1.801 1.02 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.433 ± 0.039 1.397 1.504 1.00
head memory_integration_benchmark 1.443 ± 0.018 1.410 1.468 1.01 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.794 ± 0.017 1.773 1.811 1.00
head operations_with_data_structures_benchmarks 1.834 ± 0.025 1.804 1.885 1.02 ± 0.02
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 586.1 ± 4.8 578.2 592.8 1.00
head pedersen 589.7 ± 5.5 582.9 599.5 1.01 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base poseidon_integration_benchmark 702.0 ± 11.4 685.2 722.4 1.00
head poseidon_integration_benchmark 707.4 ± 4.9 701.8 718.0 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 2.065 ± 0.017 2.042 2.093 1.00
head secp_integration_benchmark 2.088 ± 0.022 2.050 2.124 1.01 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 698.9 ± 3.4 694.9 703.0 1.03 ± 0.01
head set_integration_benchmark 681.7 ± 6.2 675.4 695.9 1.00
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.986 ± 0.052 4.945 5.087 1.00
head uint256_integration_benchmark 5.086 ± 0.085 4.985 5.281 1.02 ± 0.02

@codecov
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.34%. Comparing base (62804bc) to head (966649d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1920   +/-   ##
=======================================
  Coverage   96.34%   96.34%           
=======================================
  Files         102      102           
  Lines       40830    40830           
=======================================
  Hits        39336    39336           
  Misses       1494     1494           

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

@gabrielbosio gabrielbosio added this pull request to the merge queue Jan 23, 2025
Merged via the queue into main with commit 5af5924 Jan 23, 2025
91 checks passed
@gabrielbosio gabrielbosio deleted the release-2.0.0-rc4 branch January 23, 2025 15:18
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