Benchmarks
Zinc maintains an in-process comparison suite against Gin, Echo, and Chi. Each framework performs equivalent work through its idiomatic API.
Current results
Section titled “Current results”The latest full run on an Apple M1 Pro recorded:
- lowest latency for Zinc in
62/77comparable rows - lowest latency, or a result within 2% of it, in
63/77rows - zero request-time allocations on Zinc’s primary static, parameter, and not-found dispatch paths
Lower values are better. Results vary by workload and machine, and small differences should be confirmed with repeated samples.
What the suite covers
Section titled “What the suite covers”- core routing
- params and wildcard routes
- route misses and method mismatch
- build-time route registration
- realistic route-set scenarios
- binding and response feature paths
- static file hit and miss
Full report
Section titled “Full report”The complete benchmark report contains the environment, command, scorecard, and all 77 comparable rows from the current run.
To run the suite locally:
cd benchmarksgo test -run=^$ -bench=. -benchmem -count=1