Module testing/bench
testing/bench
Micro-benchmarking utilities.
Runs a function N times, measures elapsed nanoseconds, and returns statistics (average, min, max).
Example
{ bench } :: import "std/testing/bench";
result := bench(`sort`, u64(1000), () => { /* work */ });
println(result.to_string());
Types
BenchResult
struct