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 8 commits into
base: main
Choose a base branch
from
Draft

Unpin wasm bindgen #1847

wants to merge 8 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 ± σ):     30.127 s ±  0.024 s    [User: 29.344 s, System: 0.781 s]
  Range (min … max):   30.110 s … 30.143 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 1
  Time (mean ± σ):     29.993 s ±  0.053 s    [User: 29.228 s, System: 0.764 s]
  Range (min … max):   29.955 s … 30.031 s    2 runs
 
Summary
  'hyper_threading_pr threads: 1' ran
    1.00 ± 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 ± σ):     16.794 s ±  0.077 s    [User: 29.442 s, System: 0.798 s]
  Range (min … max):   16.740 s … 16.848 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 2
  Time (mean ± σ):     16.822 s ±  0.023 s    [User: 29.474 s, System: 0.794 s]
  Range (min … max):   16.805 s … 16.838 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 ± σ):     11.428 s ±  0.292 s    [User: 41.627 s, System: 0.934 s]
  Range (min … max):   11.221 s … 11.634 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 4
  Time (mean ± σ):     11.762 s ±  0.102 s    [User: 41.448 s, System: 0.939 s]
  Range (min … max):   11.690 s … 11.835 s    2 runs
 
Summary
  'hyper_threading_main threads: 4' ran
    1.03 ± 0.03 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.493 s ±  0.137 s    [User: 42.447 s, System: 0.926 s]
  Range (min … max):   11.396 s … 11.590 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 6
  Time (mean ± σ):     11.641 s ±  0.157 s    [User: 41.563 s, System: 0.979 s]
  Range (min … max):   11.531 s … 11.752 s    2 runs
 
Summary
  'hyper_threading_main threads: 6' ran
    1.01 ± 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 ± σ):     11.478 s ±  0.320 s    [User: 42.145 s, System: 0.966 s]
  Range (min … max):   11.252 s … 11.704 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 8
  Time (mean ± σ):     11.334 s ±  0.231 s    [User: 42.131 s, System: 0.970 s]
  Range (min … max):   11.171 s … 11.497 s    2 runs
 
Summary
  'hyper_threading_pr threads: 8' ran
    1.01 ± 0.03 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.227 s ±  0.038 s    [User: 42.723 s, System: 1.021 s]
  Range (min … max):   11.200 s … 11.254 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 16
  Time (mean ± σ):     11.300 s ±  0.292 s    [User: 42.238 s, System: 1.058 s]
  Range (min … max):   11.093 s … 11.507 s    2 runs
 
Summary
  'hyper_threading_main threads: 16' ran
    1.01 ± 0.03 times faster than 'hyper_threading_pr 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.496 ± 0.064 2.453 2.666 1.01 ± 0.04
head big_factorial 2.468 ± 0.068 2.422 2.650 1.00
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.406 ± 0.022 2.375 2.442 1.00
head big_fibonacci 2.431 ± 0.078 2.375 2.587 1.01 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 8.862 ± 0.310 8.582 9.589 1.02 ± 0.04
head blake2s_integration_benchmark 8.704 ± 0.105 8.597 8.977 1.00
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.566 ± 0.023 2.532 2.618 1.00 ± 0.02
head compare_arrays_200000 2.557 ± 0.053 2.517 2.685 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.663 ± 0.013 1.650 1.692 1.00 ± 0.02
head dict_integration_benchmark 1.662 ± 0.027 1.638 1.714 1.00
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.394 ± 0.017 1.373 1.430 1.00 ± 0.02
head field_arithmetic_get_square_benchmark 1.389 ± 0.015 1.367 1.408 1.00
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 8.954 ± 0.303 8.674 9.560 1.01 ± 0.05
head integration_builtins 8.851 ± 0.284 8.646 9.540 1.00
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 9.145 ± 0.313 8.830 9.905 1.01 ± 0.04
head keccak_integration_benchmark 9.027 ± 0.166 8.847 9.327 1.00
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.572 ± 0.056 2.535 2.724 1.00 ± 0.03
head linear_search 2.560 ± 0.033 2.518 2.637 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.746 ± 0.021 1.733 1.804 1.01 ± 0.02
head math_cmp_and_pow_integration_benchmark 1.732 ± 0.018 1.711 1.769 1.00
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.692 ± 0.007 1.680 1.701 1.00
head math_integration_benchmark 1.700 ± 0.023 1.677 1.762 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.425 ± 0.003 1.421 1.430 1.00
head memory_integration_benchmark 1.429 ± 0.016 1.417 1.472 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.816 ± 0.029 1.794 1.885 1.01 ± 0.02
head operations_with_data_structures_benchmarks 1.802 ± 0.009 1.789 1.818 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 582.6 ± 3.8 579.5 593.0 1.00 ± 0.01
head pedersen 581.3 ± 4.1 577.3 591.0 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base poseidon_integration_benchmark 691.2 ± 12.1 680.3 722.9 1.01 ± 0.02
head poseidon_integration_benchmark 687.1 ± 4.1 682.9 694.4 1.00
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 2.046 ± 0.030 2.005 2.088 1.02 ± 0.02
head secp_integration_benchmark 2.014 ± 0.015 1.991 2.030 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 715.4 ± 8.4 706.9 737.7 1.01 ± 0.02
head set_integration_benchmark 711.6 ± 8.5 705.2 735.2 1.00
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.973 ± 0.222 4.834 5.588 1.01 ± 0.05
head uint256_integration_benchmark 4.944 ± 0.095 4.815 5.097 1.00

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 (3fb0344) to head (395a82a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1847   +/-   ##
=======================================
  Coverage   96.32%   96.32%           
=======================================
  Files         102      102           
  Lines       40381    40381           
=======================================
  Hits        38899    38899           
  Misses       1482     1482           

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

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.

1 participant