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

[secp256r1] Add bench logic #3825

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

samkim-crypto
Copy link

@samkim-crypto samkim-crypto commented Nov 28, 2024

Problem

The secp256r1 precompile does not have bench code.

Summary of Changes

Add bench logic similar to the ones pertaining to ed25519 and secp256k1 precompiles.

Fixes #

Copy link

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

The change looks good to me! Once the transaction type has been extracted, we should be able to move all of these benches into their respective crates.

We just need to make sure that the openssl-vendored is always activated when running the bench. Can you add that to all of the calls of cargo bench -p solana-sdk or cargo bench --manifest-path sdk/Cargo.toml?

Looks like that means changing .github/workflows/benchmark.yml, ci/bench/part2.sh, and ci/test-bench.sh.

Copy link

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great!

@samkim-crypto samkim-crypto merged commit 9c899a7 into anza-xyz:master Dec 3, 2024
53 checks passed
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