summaryrefslogtreecommitdiff
path: root/pkg/pool
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-14 13:20:27 +0300
committerGitHub <[email protected]>2021-06-14 13:20:27 +0300
commitdc8ed203c247afd684f198ebbac103a10bfad72a (patch)
treea18f26274ffce32a0b29c479a3692dc1fe822415 /pkg/pool
parent54c3553cc39df4eae92d1f2c8c428e625f32f41a (diff)
parent128d71cad43ffcaab60cb60939584df0941f37be (diff)
#722 feat(opt): `inuse_space` and `runtime.newobject` optimizations
#722 feat(opt): `inuse_space` and `runtime.newobject` optimizations
Diffstat (limited to 'pkg/pool')
-rwxr-xr-xpkg/pool/static_pool_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/pool/static_pool_test.go b/pkg/pool/static_pool_test.go
index 6667bfea..6f875072 100755
--- a/pkg/pool/static_pool_test.go
+++ b/pkg/pool/static_pool_test.go
@@ -588,7 +588,7 @@ func Benchmark_Pool_Echo(b *testing.B) {
}
}
-//
+// Benchmark_Pool_Echo_Batched-32 366996 2873 ns/op 1233 B/op 24 allocs/op
func Benchmark_Pool_Echo_Batched(b *testing.B) {
ctx := context.Background()
p, err := Initialize(
@@ -619,7 +619,7 @@ func Benchmark_Pool_Echo_Batched(b *testing.B) {
wg.Wait()
}
-//
+// Benchmark_Pool_Echo_Replaced-32 104/100 10900218 ns/op 52365 B/op 125 allocs/op
func Benchmark_Pool_Echo_Replaced(b *testing.B) {
ctx := context.Background()
p, err := Initialize(