Skip to content

Conversation

@adust09
Copy link
Contributor

@adust09 adust09 commented Sep 20, 2025

Measure key benchmark metrics with minimal changes to the current implementation

Tests: cargo bench

Currently, Criterion only records the execution time per iteration for each benchmark function. such as proof size and verification time is not included in Criterion.

Let me know if we need any items.

TomWambsgans and others added 5 commits September 20, 2025 14:46
…ks; refactor rec_aggregation module to expose recursion and xmss_aggregate. Introduce examples module in the library and adjust main.rs to use updated paths.
This commit introduces a new benchmark for the Poseidon2 algorithm, utilizing the Criterion library for performance measurement. The benchmark is configured with specific parameters for logging and security assumptions, and it measures the prover time of the Poseidon2 configuration. The new file is located in `benches/poseidon2.rs`.
This commit introduces a new benchmark for the recursion functionality in the `rec_aggregation` module, utilizing the Criterion library for performance measurement. The benchmark is configured with specific parameters for sample size, measurement time, and warm-up time, and it measures the proving time of the recursion implementation. The new benchmark file is located in `benches/recursion.rs`, and the recursion logic has been refactored to support this benchmarking. Additionally, constants have been introduced for better readability and maintainability.
This commit introduces a new benchmark for the XMSS algorithm in the `benches/xmss.rs` file, utilizing the Criterion library for performance measurement. The benchmark is configured with specific parameters for sample size, measurement time, and warm-up time, and it measures the proving time of the XMSS implementation. Additionally, the `xmss_aggregate.rs` file has been refactored to include a new `XmssBenchStats` struct for better organization of benchmarking results and to streamline the benchmarking process. The test function for XMSS aggregation has also been updated to utilize the new benchmarking structure.
@TomWambsgans TomWambsgans merged commit 2b906b6 into leanEthereum:main Sep 20, 2025
1 of 4 checks passed
@adust09 adust09 deleted the vk/fe5a-criterion branch September 20, 2025 13:14
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