mirror of https://github.com/gofiber/fiber.git
* ⚡ middleware/pprof: improve performance Concatenate the custom and fixed prefixes beforehand, so the trimmed path can be switched on against constant strings. goos: linux goarch: amd64 pkg: github.com/gofiber/fiber/v2/middleware/pprof cpu: 13th Gen Intel(R) Core(TM) i9-13900K BenchmarkPprof/Slow-32 4912642 246.3 ns/op 480 B/op 10 allocs/op BenchmarkPprof/Fast-32 411908472 2.913 ns/op 0 B/op 0 allocs/op PASS * 🌂 middleware/pprof: disable nonamedreturns linter on cutPrefix |
||
---|---|---|
.. | ||
config.go | ||
pprof.go | ||
pprof_test.go |