Documentation
Benchmarks
Measure routing latency, allocations, and throughput.
Overview
Benchmarks are a first-class module for performance regression tracking.
Example
Go
go test ./... -bench=. -benchmem
make benchBest Practices
- Track trend lines, not only one-off runs.
- Benchmark under representative payload sizes.
Common Pitfalls
- Comparing results across different hardware baselines.
- Ignoring allocations while focusing only on ns/op.