go-don
go-don copied to clipboard
test: benchmark request pool
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
e5f588b
) 98.48% compared to head (7beaa41
) 98.48%.
Additional details and impacted files
@@ Coverage Diff @@
## master #194 +/- ##
=======================================
Coverage 98.48% 98.48%
=======================================
Files 24 24
Lines 728 728
=======================================
Hits 717 717
Misses 6 6
Partials 5 5
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Benchmark Results
.
goos: linux
goarch: amd64
pkg: github.com/abemedia/go-don
cpu: AMD EPYC 7763 64-Core Processor
│ before │ after │
│ sec/op │ sec/op vs base │
Handler/Request-4 251.4n ± 1% 253.8n ± 2% +0.97% (p=0.001 n=10)
Handler/RequestPointer-4 274.6n ± 0% 275.9n ± 1% +0.51% (p=0.000 n=10)
Pool/Struct-4 20.75n ± 0%
Pool/Pointer-4 25.73n ± 0%
Pool_New/Struct-4 29.05n ± 1%
Pool_New/Pointer-4 50.31n ± 0%
Pool_Reset/Struct-4 2.811n ± 0%
Pool_Reset/Pointer-4 7.441n ± 0%
geomean 262.7n 32.16n +0.74%
│ before │ after │
│ B/op │ B/op vs base │
Handler/Request-4 24.00 ± 0% 24.00 ± 0% ~ (p=1.000 n=10) ¹
Handler/RequestPointer-4 24.00 ± 0% 24.00 ± 0% ~ (p=1.000 n=10) ¹
Pool/Struct-4 0.000 ± 0%
Pool/Pointer-4 0.000 ± 0%
Pool_New/Struct-4 24.00 ± 0%
Pool_New/Pointer-4 32.00 ± 0%
Pool_Reset/Struct-4 0.000 ± 0%
Pool_Reset/Pointer-4 0.000 ± 0%
geomean 24.00 +0.00% ²
¹ all samples are equal
² summaries must be >0 to compute geomean
│ before │ after │
│ allocs/op │ allocs/op vs base │
Handler/Request-4 1.000 ± 0% 1.000 ± 0% ~ (p=1.000 n=10) ¹
Handler/RequestPointer-4 1.000 ± 0% 1.000 ± 0% ~ (p=1.000 n=10) ¹
Pool/Struct-4 0.000 ± 0%
Pool/Pointer-4 0.000 ± 0%
Pool_New/Struct-4 1.000 ± 0%
Pool_New/Pointer-4 2.000 ± 0%
Pool_Reset/Struct-4 0.000 ± 0%
Pool_Reset/Pointer-4 0.000 ± 0%
geomean 1.000 +0.00% ²
¹ all samples are equal
² summaries must be >0 to compute geomean