Skip to content

Conversation

DiegoCivi
Copy link
Contributor

Add cargo machete to CI

Description

Closes #2222

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.

@DiegoCivi DiegoCivi added the pipelines This PR/issue is exclusively about improving our CI label Oct 13, 2025
Copy link

github-actions bot commented Oct 13, 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 ± σ):     24.778 s ±  0.073 s    [User: 23.910 s, System: 0.865 s]
  Range (min … max):   24.726 s … 24.829 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 1
  Time (mean ± σ):     24.603 s ±  0.025 s    [User: 23.773 s, System: 0.827 s]
  Range (min … max):   24.585 s … 24.621 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 ± σ):     13.438 s ±  0.005 s    [User: 23.999 s, System: 0.872 s]
  Range (min … max):   13.434 s … 13.441 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 2
  Time (mean ± σ):     13.407 s ±  0.044 s    [User: 23.906 s, System: 0.872 s]
  Range (min … max):   13.376 s … 13.438 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 ± σ):     10.367 s ±  0.080 s    [User: 36.177 s, System: 1.056 s]
  Range (min … max):   10.310 s … 10.424 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 4
  Time (mean ± σ):      9.988 s ±  0.060 s    [User: 36.304 s, System: 1.038 s]
  Range (min … max):    9.946 s … 10.030 s    2 runs
 
Summary
  hyper_threading_pr threads: 4 ran
    1.04 ± 0.01 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.016 s ±  0.051 s    [User: 37.023 s, System: 1.049 s]
  Range (min … max):    9.980 s … 10.052 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 6
  Time (mean ± σ):     10.016 s ±  0.110 s    [User: 36.739 s, System: 1.070 s]
  Range (min … max):    9.939 s … 10.094 s    2 runs
 
Summary
  hyper_threading_main threads: 6 ran
    1.00 ± 0.01 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.350 s ±  0.259 s    [User: 36.790 s, System: 1.060 s]
  Range (min … max):   10.167 s … 10.533 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 8
  Time (mean ± σ):      9.857 s ±  0.031 s    [User: 37.205 s, System: 1.132 s]
  Range (min … max):    9.835 s …  9.879 s    2 runs
 
Summary
  hyper_threading_pr threads: 8 ran
    1.05 ± 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 ± σ):      9.992 s ±  0.075 s    [User: 37.058 s, System: 1.154 s]
  Range (min … max):    9.939 s … 10.045 s    2 runs
 
Benchmark 2: hyper_threading_pr threads: 16
  Time (mean ± σ):      9.904 s ±  0.171 s    [User: 37.245 s, System: 1.182 s]
  Range (min … max):    9.784 s … 10.025 s    2 runs
 
Summary
  hyper_threading_pr threads: 16 ran
    1.01 ± 0.02 times faster than hyper_threading_main threads: 16


Copy link

github-actions bot commented Oct 13, 2025

Benchmark Results for unmodified programs 🚀

Command Mean [s] Min [s] Max [s] Relative
base big_factorial 2.071 ± 0.016 2.047 2.095 1.00
head big_factorial 2.076 ± 0.023 2.047 2.112 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base big_fibonacci 2.005 ± 0.020 1.981 2.039 1.00
head big_fibonacci 2.015 ± 0.022 1.987 2.054 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base blake2s_integration_benchmark 7.256 ± 0.119 7.085 7.541 1.00 ± 0.03
head blake2s_integration_benchmark 7.223 ± 0.175 7.029 7.633 1.00
Command Mean [s] Min [s] Max [s] Relative
base compare_arrays_200000 2.150 ± 0.017 2.125 2.174 1.01 ± 0.01
head compare_arrays_200000 2.139 ± 0.012 2.121 2.157 1.00
Command Mean [s] Min [s] Max [s] Relative
base dict_integration_benchmark 1.411 ± 0.011 1.396 1.436 1.00
head dict_integration_benchmark 1.419 ± 0.018 1.399 1.450 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base field_arithmetic_get_square_benchmark 1.189 ± 0.009 1.177 1.205 1.00
head field_arithmetic_get_square_benchmark 1.196 ± 0.009 1.183 1.209 1.01 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base integration_builtins 7.296 ± 0.113 7.152 7.508 1.00
head integration_builtins 7.329 ± 0.041 7.279 7.384 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base keccak_integration_benchmark 7.318 ± 0.072 7.175 7.395 1.00
head keccak_integration_benchmark 7.325 ± 0.093 7.171 7.429 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base linear_search 2.100 ± 0.015 2.079 2.126 1.00
head linear_search 2.117 ± 0.029 2.080 2.161 1.01 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base math_cmp_and_pow_integration_benchmark 1.474 ± 0.009 1.458 1.486 1.00
head math_cmp_and_pow_integration_benchmark 1.479 ± 0.007 1.468 1.494 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base math_integration_benchmark 1.446 ± 0.046 1.408 1.568 1.00
head math_integration_benchmark 1.448 ± 0.023 1.426 1.493 1.00 ± 0.04
Command Mean [s] Min [s] Max [s] Relative
base memory_integration_benchmark 1.192 ± 0.014 1.177 1.220 1.00 ± 0.02
head memory_integration_benchmark 1.191 ± 0.012 1.176 1.204 1.00
Command Mean [s] Min [s] Max [s] Relative
base operations_with_data_structures_benchmarks 1.513 ± 0.017 1.500 1.556 1.00
head operations_with_data_structures_benchmarks 1.523 ± 0.023 1.505 1.571 1.01 ± 0.02
Command Mean [ms] Min [ms] Max [ms] Relative
base pedersen 522.0 ± 3.9 517.6 531.0 1.00 ± 0.01
head pedersen 521.6 ± 1.9 518.0 524.4 1.00
Command Mean [ms] Min [ms] Max [ms] Relative
base poseidon_integration_benchmark 600.0 ± 6.0 593.4 612.3 1.00
head poseidon_integration_benchmark 601.4 ± 6.9 592.5 611.7 1.00 ± 0.02
Command Mean [s] Min [s] Max [s] Relative
base secp_integration_benchmark 1.752 ± 0.008 1.741 1.765 1.00
head secp_integration_benchmark 1.762 ± 0.009 1.751 1.779 1.01 ± 0.01
Command Mean [ms] Min [ms] Max [ms] Relative
base set_integration_benchmark 642.6 ± 4.0 638.1 651.2 1.00
head set_integration_benchmark 643.9 ± 2.3 639.9 647.0 1.00 ± 0.01
Command Mean [s] Min [s] Max [s] Relative
base uint256_integration_benchmark 4.082 ± 0.036 4.031 4.133 1.00
head uint256_integration_benchmark 4.115 ± 0.047 4.055 4.202 1.01 ± 0.01

Copy link

codecov bot commented Oct 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.68%. Comparing base (a3f1ae9) to head (8a59549).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2226   +/-   ##
=======================================
  Coverage   96.68%   96.68%           
=======================================
  Files         104      104           
  Lines       44027    44027           
=======================================
  Hits        42566    42566           
  Misses       1461     1461           

☔ 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.

@DiegoCivi DiegoCivi marked this pull request as ready for review October 14, 2025 13:32
@gabrielbosio gabrielbosio added this pull request to the merge queue Oct 17, 2025
Merged via the queue into main with commit d5f7fd8 Oct 17, 2025
92 checks passed
@gabrielbosio gabrielbosio deleted the cargo-machete-ci branch October 17, 2025 20:58
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.

Add cargo-machete job in CI

3 participants