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 for Babybear #947

Open
wants to merge 4 commits into
base: baby-bear-extension
Choose a base branch
from
Open

Conversation

jotabulacios
Copy link
Contributor

@jotabulacios jotabulacios commented Nov 29, 2024

Add Bench for Babybear

Description

This PR adds benchmarks for BabyBear field arithmetic operations in both the base field and its degree-4 extension field.

Results for 1 million operations

Operation Lambdaworsk Plonky3 Percentage Difference
Addition 610.68 µs 629.35 µs 2.97%
Multiplication 747.44 µs 701.59 µs -6.53%
Squaring 1.0284 ms 612.02 µs -68.03%
Division 138.03 ms 84.085 ms -64.16%
Inversion 139.71 ms 80.817 ms -72.87%
Addition Fp4 877.75 µs 529.44 µs -65.79%
Multiplication Fp4 14.218 ms 12.625 ms -12.62%
Squaring Fp4 10.603 ms 12.177 ms 12.93%
Division Fp4 168.18 ms 188.82 ms 10.93%
Inversion Fp4 193.61 ms 162.75 ms -18.96%

Checklist

  • Benchmarks added/run

@jotabulacios jotabulacios requested a review from a team as a code owner November 29, 2024 20:27
@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.04%. Comparing base (13fae9c) to head (456c4fa).
Report is 3 commits behind head on baby-bear-extension.

Additional details and impacted files
@@                   Coverage Diff                   @@
##           baby-bear-extension     #947      +/-   ##
=======================================================
- Coverage                71.09%   71.04%   -0.05%     
=======================================================
  Files                      154      154              
  Lines                    33093    33111      +18     
=======================================================
- Hits                     23527    23525       -2     
- Misses                    9566     9586      +20     

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

2 participants