3 ms·
It's a common optimization in Go. The benchmark tool that ships with go allows reporting of bytes allocated per call. Many webserver frameworks in Go strive for
by kyrra 7y ago
It's a common optimization in Go. The benchmark tool that ships with go allows reporting of bytes allocated per call. Many webserver frameworks in Go strive for 0 allocs so as a user of the library, you know it won't cause extra garbage.
https://scene-si.org/2017/06/06/benchmarking-go-programs/ https://scene-si.org/2017/06/06/benchmarking-go-programs/