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

chore: added simple benchmarks and tooling #100

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

kashbrti
Copy link
Contributor

@kashbrti kashbrti commented Jan 16, 2025

Description

Problem*

Resolves

Summary*

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@kashbrti kashbrti changed the title feat: added simple benchmarks and tooling chore: added simple benchmarks and tooling Jan 16, 2025
let c = a - b;
}

fn bench_mul<let N: u32, BN>(a: BN, b: BN)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not clear on why we need these functions rather than putting the arithmetic directly inside the #[export] functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for these, it doesn't matter much I guess, but I thought it might be a good framework for more complicated functions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wonder if this introduces unnecessary memory gates for bb though.

@Savio-Sou Savio-Sou linked an issue Jan 16, 2025 that may be closed by this pull request
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.

Add benchmarking for significant operations
2 participants