lambdaclass / concrete

Concrete is a simple programming language specifically crafted for creating highly scalable systems that are reliable, efficient, and easy to maintain.
Apache License 2.0
123 stars 11 forks source link

Add bench vs rust #96

Closed edg-l closed 6 months ago

edg-l commented 6 months ago

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 commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 6 months ago

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