Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
```shell $ go test -run=- -bench=AdaptivePool -count=20 | benchstat -col=/implem,/method - goos: linux goarch: amd64 pkg: github.com/diegommm/adaptivepool cpu: 13th Gen Intel(R) Core(TM) i7-13700H │ sync.Pool │ AdaptivePool │ │ Get │ Put │ Get │ Put │ GetWithCost │ │ sec/op │ sec/op vs base │ sec/op vs base │ sec/op vs base │ sec/op vs base │ AdaptivePool/created=true-20 49.09n ± 8% 51.31n ± 17% +4.53% (p=0.022 n=20) AdaptivePool/created=false-20 10.26n ± 18% 10.93n ± 16% +6.53% (p=0.033 n=20) AdaptivePool/accepted=true-20 15.98n ± 6% 41.29n ± 10% AdaptivePool/accepted=false-20 0.8268n ± 20% 26.6200n ± 12% AdaptivePool/created=true/fromPool=true-20 12.33n ± 17% AdaptivePool/created=true/fromPool=false-20 47.04n ± 11% AdaptivePool/created=false/fromPool=true-20 11.58n ± 14% geomean 22.44n 3.634n ? ¹ ² 23.68n +5.53% 33.15n ? ¹ ² 18.87n ? ¹ ² ¹ benchmark set differs from baseline; geomeans may not be comparable ² ratios must be >0 to compute geomean │ sync.Pool │ AdaptivePool │ │ Get │ Put │ Get │ Put │ GetWithCost │ │ B/op │ B/op vs base │ B/op vs base │ B/op vs base │ B/op vs base │ AdaptivePool/created=true-20 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=20) ¹ AdaptivePool/created=false-20 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=20) ¹ AdaptivePool/accepted=true-20 24.00 ± 4% 17.00 ± 12% AdaptivePool/accepted=false-20 0.000 ± 0% 0.000 ± 0% AdaptivePool/created=true/fromPool=true-20 0.000 ± 0% AdaptivePool/created=true/fromPool=false-20 0.000 ± 0% AdaptivePool/created=false/fromPool=true-20 0.000 ± 0% geomean ² ? ³ ² ⁴ +0.00% ² ? ³ ² ⁴ ? ³ ² ⁴ ¹ all samples are equal ² summaries must be >0 to compute geomean ³ benchmark set differs from baseline; geomeans may not be comparable ⁴ ratios must be >0 to compute geomean │ sync.Pool │ AdaptivePool │ │ Get │ Put │ Get │ Put │ GetWithCost │ │ allocs/op │ allocs/op vs base │ allocs/op vs base │ allocs/op vs base │ allocs/op vs base │ AdaptivePool/created=true-20 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=20) ¹ AdaptivePool/created=false-20 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=20) ¹ AdaptivePool/accepted=true-20 0.000 ± 0% 0.000 ± 0% AdaptivePool/accepted=false-20 0.000 ± 0% 0.000 ± 0% AdaptivePool/created=true/fromPool=true-20 0.000 ± 0% AdaptivePool/created=true/fromPool=false-20 0.000 ± 0% AdaptivePool/created=false/fromPool=true-20 0.000 ± 0% geomean ² ? ³ ² ⁴ +0.00% ² ? ³ ² ⁴ ? ³ ² ⁴ ¹ all samples are equal ² summaries must be >0 to compute geomean ³ benchmark set differs from baseline; geomeans may not be comparable ⁴ ratios must be >0 to compute geomean │ sync.Pool │ AdaptivePool │ │ Get │ Get │ │ valid │ valid vs base │ AdaptivePool/created=false-20 100.0M ± 0% 100.0M ± 0% ~ (p=0.241 n=20) ```
- Loading branch information