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

Add bench vs rust #96

Merged
merged 8 commits into from
Mar 14, 2024
Merged

Add bench vs rust #96

merged 8 commits into from
Mar 14, 2024

Conversation

edg-l
Copy link
Member

@edg-l edg-l commented Mar 7, 2024

Running locally on a AMD Ryzen 7 5800X (16) @ 4.85 GHz

❯ make bench
### Benchmarking factorial 
Running 5000000 iterations
Using input value:      20
Concrete Result =       2432902008176640000             Time taken : 40.19 ms
Rust Result =           2432902008176640000             Time taken : 41.08 ms
### Benchmarking fib 
Running 5000 iterations
Using input value:      20
Concrete Result =       6765            Time taken : 96.77 ms
Rust Result =           6765            Time taken : 82.51 ms

@codecov-commenter
Copy link

codecov-commenter commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.29%. Comparing base (8daf8cb) to head (02691b7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #96      +/-   ##
==========================================
+ Coverage   64.26%   64.29%   +0.02%     
==========================================
  Files          33       33              
  Lines        3355     3355              
==========================================
+ Hits         2156     2157       +1     
+ Misses       1199     1198       -1     

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

Copy link

github-actions bot commented Mar 7, 2024

Benchmarking factorial

Running 5000000 iterations
Using input value: 20
Concrete Result = 2432902008176640000 Time taken : 59.28 ms
Rust Result = 2432902008176640000 Time taken : 60.15 ms

Benchmarking fib

Running 5000 iterations
Using input value: 20
Concrete Result = 6765 Time taken : 136.44 ms
Rust Result = 6765 Time taken : 85.20 ms

@edg-l edg-l marked this pull request as ready for review March 7, 2024 17:52
@edg-l edg-l merged commit 8732110 into main Mar 14, 2024
5 checks passed
@edg-l edg-l deleted the bench branch March 14, 2024 14:24
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