Skip to main content

Module bench

Module bench 

Source
Expand description

Benchmarking utilities for Windjammer tests

Provides simple benchmarking functions that can be used with @bench decorator. For more advanced benchmarking, use the criterion crate directly.

Functionsยง

bench
Benchmark a closure and return its duration
bench_compare
Compare two implementations and return their relative performance
bench_iterations
Run a closure multiple times and return the average duration