cuprate-hinto-janai/benches/criterion/example
hinto.janai 185c2ee25a
Some checks are pending
Audit / audit (push) Waiting to run
Deny / audit (push) Waiting to run
add cuprate-criterion-example
2024-10-08 17:42:21 -04:00
..
benches add cuprate-criterion-example 2024-10-08 17:42:21 -04:00
src add cuprate-criterion-example 2024-10-08 17:42:21 -04:00
Cargo.toml add cuprate-criterion-example 2024-10-08 17:42:21 -04:00
README.md add cuprate-criterion-example 2024-10-08 17:42:21 -04:00

cuprate-criterion-example

An example of using Criterion for benchmarking Cuprate crates.

Consider copy+pasting this crate to use as a base when creating new Criterion benchmark crates.

src/

Benchmark crates have a benches/ ran by cargo bench, but they are also crates themselves, as in, they have a src folder that benches/ can pull code from.

The src directories in these benchmarking crates are usually filled with helper functions, types, etc, that are used repeatedly in the benchmarks.

benches/

These are the actual benchmarks ran by cargo bench.