mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Added a tip for writing tests and benchmarks for hot paths
This commit is contained in:
@@ -91,3 +91,4 @@ BenchmarkServerGet10KReqPerConn1KClients-4 5000000 359 ns/op
|
||||
in production.
|
||||
`go tool pprof --alloc_objects your-program mem.pprof` usually gives better
|
||||
insights for optimization than `go tool pprof your-program cpu.pprof`.
|
||||
* Write [tests and benchmarks](https://golang.org/pkg/testing/) for hot paths.
|
||||
|
||||
Reference in New Issue
Block a user