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

Add Bench for Babybear #947

wants to merge 14 commits into from

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 Lambdaworks Plonky3 Speedup
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.14%. Comparing base (2ce8b2e) to head (90772ef).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #947   +/-   ##
=======================================
  Coverage   71.14%   71.14%           
=======================================
  Files         153      153           
  Lines       33129    33129           
=======================================
  Hits        23570    23570           
  Misses       9559     9559           

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

Base automatically changed from baby-bear-extension to main December 11, 2024 21:17
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.

3 participants