diff options
author | Valery Piashchynski <[email protected]> | 2021-07-22 15:53:03 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-22 15:53:03 +0300 |
commit | 83b246c68ea1594de2462c4ada3498babae906fb (patch) | |
tree | 67d8efebf7459b80c9c66d8a5ada40f4efaa14b4 /pkg | |
parent | 6561c6a0d5c918d09d792fb4c70629b5dd3a2f0d (diff) |
Benchmark tests comments
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg')
-rwxr-xr-x | pkg/pool/static_pool_test.go | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/pkg/pool/static_pool_test.go b/pkg/pool/static_pool_test.go index 3eec34d0..3f9ab2bb 100755 --- a/pkg/pool/static_pool_test.go +++ b/pkg/pool/static_pool_test.go @@ -564,12 +564,24 @@ func Test_Static_Pool_WrongCommand2(t *testing.T) { assert.Nil(t, p) } -// PTR: -// Benchmark_Pool_Echo-32 49076 29926 ns/op 8016 B/op 20 allocs/op -// Benchmark_Pool_Echo-32 47257 30779 ns/op 8047 B/op 20 allocs/op -// Benchmark_Pool_Echo-32 46737 29440 ns/op 8065 B/op 20 allocs/op -// Benchmark_Pool_Echo-32 51177 29074 ns/op 7981 B/op 20 allocs/op -// Benchmark_Pool_Echo-32 51764 28319 ns/op 8012 B/op 20 allocs/op +/* PTR: +Benchmark_Pool_Echo-32 49076 29926 ns/op 8016 B/op 20 allocs/op +Benchmark_Pool_Echo-32 47257 30779 ns/op 8047 B/op 20 allocs/op +Benchmark_Pool_Echo-32 46737 29440 ns/op 8065 B/op 20 allocs/op +Benchmark_Pool_Echo-32 51177 29074 ns/op 7981 B/op 20 allocs/op +Benchmark_Pool_Echo-32 51764 28319 ns/op 8012 B/op 20 allocs/op +Benchmark_Pool_Echo-32 54054 30714 ns/op 7987 B/op 20 allocs/op +Benchmark_Pool_Echo-32 54391 30689 ns/op 8055 B/op 20 allocs/op + +VAL: +Benchmark_Pool_Echo-32 47936 28679 ns/op 7942 B/op 19 allocs/op +Benchmark_Pool_Echo-32 49010 29830 ns/op 7970 B/op 19 allocs/op +Benchmark_Pool_Echo-32 46771 29031 ns/op 8014 B/op 19 allocs/op +Benchmark_Pool_Echo-32 47760 30517 ns/op 7955 B/op 19 allocs/op +Benchmark_Pool_Echo-32 48148 29816 ns/op 7950 B/op 19 allocs/op +Benchmark_Pool_Echo-32 52705 29809 ns/op 7979 B/op 19 allocs/op +Benchmark_Pool_Echo-32 54374 27776 ns/op 7947 B/op 19 allocs/op + */ func Benchmark_Pool_Echo(b *testing.B) { ctx := context.Background() p, err := Initialize( |