Files
Aleksey Shakhmatov 2610b8cf56 docs: bundled example benchmark suite
Examples covering the main usage patterns:

- bench_append_u8: per-iteration heap work, demonstrates B/op tracking
  via the wrapped allocator.
- bench_sha256_64: set_bytes() for throughput in MB/s.
- bench_integer_sum: shows the optimization pitfall with a comment —
  trivial loop bodies need an in-loop b.keep to survive ReleaseFast.
- bench_hash_sizes: parent that delegates to sub-benchmarks via b.run,
  printed as `hash_sizes/sha256_<size>`.
- memset_{16,256,4096}: comptime-parametric benchmark generation via
  std.fmt.comptimePrint + a generic gen_bench factory.

Includes a stand-alone examples/bench/build.zig illustrating the
zbench_build.add_bench_step integration a downstream project would use.
2026-05-21 08:13:28 +03:00
..