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

Manual benchmarks for PQClean #490

Merged
merged 6 commits into from
Aug 14, 2024
Merged

Conversation

jschneider-bensch
Copy link
Collaborator

In order to compare to PQclean, I've replicated the manual benchmark approach for PQClean.
Note that the PQClean has internal randomness generation, compared to us, so I wonder if we should not include sampling the randomness in our part of the benchmark. We did not do this with the criterion benchmarks, so I didn't do it here for now.

Also, I've split the parameter set benchmarks, so you can run them individually. The bit where I include bench_utils.rs via #[path=...] is a bit nasty, let me know if I should try a different approach.

Fixes #487

Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

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

Thanks. lgtm with a few nits.

libcrux-ml-dsa/Cargo.toml Show resolved Hide resolved
libcrux-ml-dsa/benches/manual44.rs Outdated Show resolved Hide resolved
libcrux-ml-dsa/benches/bench_utils.rs Show resolved Hide resolved
@franziskuskiefer
Copy link
Member

I wonder if we should not include sampling the randomness in our part of the benchmark

Yeah we should measure all the combinations eventually. Can you put that on an issue?

@jschneider-bensch jschneider-bensch merged commit b1d4135 into main Aug 14, 2024
54 checks passed
@jschneider-bensch jschneider-bensch deleted the jonas/ml-dsa-manual-benches branch August 14, 2024 12:27
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.

ML-DSA: Benchmark PQClean for comparison
2 participants