← all modules
module

stdlib::bench

defined in C:\Users\bye45\.glide\bin/src/stdlib/bench.glide

Run one named bench with an auto-tuned iteration count.

struct struct Bencher
fn fn bench_run(name: string, f: fn(*Bencher))

Run one named bench with an auto-tuned iteration count. f receives the Bencher; the user's loop must respect b.n.

glide
bench_run("bench_concat", bench_concat);
fn fn bench_summary() -> int

Final summary line — total benches run. Returns the count of failed benches for an exit-code-friendly main.