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

Unpin wasm bindgen #1847

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Unpin wasm bindgen #1847

wants to merge 11 commits into from

Conversation

pefontana
Copy link
Member

Unpin wasm bindgen

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.

Copy link

github-actions bot commented Oct 7, 2024

**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 ± σ):     33.107 s ±  0.011 s    [User: 32.329 s, System: 0.776 s]
  Range (min … max):   33.099 s … 33.114 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 1
  Time (mean ± σ):     32.934 s ±  0.003 s    [User: 32.215 s, System: 0.718 s]
  Range (min … max):   32.932 s … 32.936 s    2 runs
 
Summary
  'hyper_threading_pr threads: 1' ran
    1.01 ± 0.00 times faster than 'hyper_threading_main 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.743 s ±  0.019 s    [User: 31.079 s, System: 0.767 s]
  Range (min … max):   17.729 s … 17.756 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 2
  Time (mean ± σ):     17.680 s ±  0.001 s    [User: 30.955 s, System: 0.784 s]
  Range (min … max):   17.679 s … 17.680 s    2 runs
 
Summary
  'hyper_threading_pr threads: 2' ran
    1.00 ± 0.00 times faster than 'hyper_threading_main 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.379 s ±  0.496 s    [User: 43.965 s, System: 0.985 s]
  Range (min … max):   12.028 s … 12.730 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 4
  Time (mean ± σ):     12.234 s ±  0.332 s    [User: 43.659 s, System: 0.976 s]
  Range (min … max):   11.999 s … 12.469 s    2 runs
 
Summary
  'hyper_threading_pr threads: 4' ran
    1.01 ± 0.05 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 ± σ):     12.459 s ±  0.100 s    [User: 43.637 s, System: 0.916 s]
  Range (min … max):   12.388 s … 12.530 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 6
  Time (mean ± σ):     12.445 s ±  0.084 s    [User: 43.706 s, System: 1.033 s]
  Range (min … max):   12.386 s … 12.505 s    2 runs
 
Summary
  'hyper_threading_pr threads: 6' ran
    1.00 ± 0.01 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 ± σ):     11.987 s ±  0.224 s    [User: 44.163 s, System: 0.993 s]
  Range (min … max):   11.829 s … 12.146 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 8
  Time (mean ± σ):     12.058 s ±  0.158 s    [User: 44.232 s, System: 0.936 s]
  Range (min … max):   11.946 s … 12.169 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 ± σ):     11.705 s ±  0.003 s    [User: 44.605 s, System: 1.084 s]
  Range (min … max):   11.703 s … 11.708 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 16
  Time (mean ± σ):     11.650 s ±  0.088 s    [User: 44.552 s, System: 1.017 s]
  Range (min … max):   11.587 s … 11.712 s    2 runs
 
Summary
  'hyper_threading_pr threads: 16' ran
    1.00 ± 0.01 times faster than 'hyper_threading_main threads: 16'


Copy link

github-actions bot commented Oct 7, 2024

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 2.520 ± 0.077 2.466 2.717 1.01 ± 0.03
head big_factorial 2.483 ± 0.028 2.458 2.526 1.00
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.448 ± 0.027 2.405 2.477 1.00 ± 0.02
head big_fibonacci 2.446 ± 0.044 2.401 2.530 1.00
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 9.370 ± 0.465 9.049 10.671 1.02 ± 0.06
head blake2s_integration_benchmark 9.177 ± 0.204 9.000 9.712 1.00
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.596 ± 0.027 2.553 2.624 1.01 ± 0.02
head compare_arrays_200000 2.572 ± 0.039 2.524 2.656 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.674 ± 0.014 1.658 1.696 1.00
head dict_integration_benchmark 1.696 ± 0.035 1.653 1.756 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.428 ± 0.021 1.410 1.476 1.00 ± 0.02
head field_arithmetic_get_square_benchmark 1.425 ± 0.011 1.406 1.437 1.00
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 9.268 ± 0.221 9.080 9.804 1.01 ± 0.03
head integration_builtins 9.189 ± 0.109 9.070 9.395 1.00
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 9.593 ± 0.181 9.393 10.030 1.01 ± 0.02
head keccak_integration_benchmark 9.457 ± 0.092 9.333 9.622 1.00
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.566 ± 0.029 2.532 2.619 1.00 ± 0.02
head linear_search 2.559 ± 0.051 2.515 2.677 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.743 ± 0.014 1.723 1.760 1.00
head math_cmp_and_pow_integration_benchmark 1.747 ± 0.024 1.716 1.789 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.704 ± 0.058 1.665 1.858 1.00
head math_integration_benchmark 1.705 ± 0.053 1.671 1.851 1.00 ± 0.05
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.444 ± 0.030 1.414 1.508 1.01 ± 0.02
head memory_integration_benchmark 1.426 ± 0.012 1.405 1.437 1.00
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.818 ± 0.017 1.796 1.858 1.00
head operations_with_data_structures_benchmarks 1.828 ± 0.043 1.790 1.907 1.01 ± 0.03
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 595.9 ± 2.9 591.2 600.7 1.00 ± 0.01
head pedersen 594.6 ± 6.7 591.1 613.1 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base poseidon_integration_benchmark 689.6 ± 5.4 680.3 699.0 1.00 ± 0.01
head poseidon_integration_benchmark 686.7 ± 8.5 673.6 700.9 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 2.096 ± 0.052 2.055 2.238 1.01 ± 0.03
head secp_integration_benchmark 2.067 ± 0.010 2.049 2.081 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 704.3 ± 12.2 694.9 735.3 1.06 ± 0.02
head set_integration_benchmark 665.8 ± 5.9 659.9 679.7 1.00
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 5.042 ± 0.057 4.974 5.152 1.00
head uint256_integration_benchmark 5.069 ± 0.150 4.953 5.461 1.01 ± 0.03

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.32%. Comparing base (d2257d6) to head (87d8a1e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1847   +/-   ##
=======================================
  Coverage   96.32%   96.32%           
=======================================
  Files         102      102           
  Lines       40315    40315           
=======================================
  Hits        38832    38832           
  Misses       1483     1483           

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

@pefontana pefontana added the pipelines This PR/issue is exclusively about improving our CI label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pipelines This PR/issue is exclusively about improving our CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant