Skip to content

Criterion benches#5

Merged
mmaker merged 9 commits intomainfrom
criterion-benches
Sep 22, 2025
Merged

Criterion benches#5
mmaker merged 9 commits intomainfrom
criterion-benches

Conversation

@LDiazN
Copy link
Copy Markdown
Contributor

@LDiazN LDiazN commented Sep 19, 2025

This PR will set up benches for ooniauth-core

For now I only added benchmarking for submit and registration since those are the relevant bottlenecks for our backend

You can run the benchmarks by going to the ooniauth-core crate and running:

cargo bench

Example

     Running benches/basic_usage.rs (/home/luis/Dev/ooni/anonymous_credentials/userauth/target/release/deps/basic_usage-ebe1afc275580189)
Gnuplot not found, using plotters backend
registration            time:   [3.1657 ms 3.1783 ms 3.1918 ms]
                        change: [-6.4979% -4.7260% -3.0780%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 4 outliers among 100 measurements (4.00%)
  3 (3.00%) high mild
  1 (1.00%) high severe

submit                  time:   [25.605 ms 25.851 ms 26.111 ms]
                        change: [-0.3883% +0.6692% +1.7509%] (p = 0.22 > 0.05)
                        No change in performance detected.
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild

References

https://github.com/bheisler/criterion.rs


closes #8

@LDiazN LDiazN self-assigned this Sep 19, 2025
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.

Create benchmarking setup

2 participants