diff options
author | Wolfy-J <[email protected]> | 2018-01-23 20:43:53 -0500 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-23 20:43:53 -0500 |
commit | 8829937dc742fb6f4d8d91203d2f6449ec03110d (patch) | |
tree | 02f0a6e78ad073127477ecc92d23023b88205bfb /pool_test.go | |
parent | eeed0f5dfffc9025aa493d90e0094325c7091b56 (diff) |
no more magic smoke. numbers 245K rq/s!
Diffstat (limited to 'pool_test.go')
-rw-r--r-- | pool_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pool_test.go b/pool_test.go index 534ea855..88926a9b 100644 --- a/pool_test.go +++ b/pool_test.go @@ -8,7 +8,6 @@ import ( "sync" "testing" "time" - "log" ) var cfg = Config{ @@ -174,9 +173,8 @@ func Benchmark_Pool_Echo_Batched(b *testing.B) { ) defer p.Destroy() - s := time.Now() var wg sync.WaitGroup - for i := 0; i < b.N*10; i++ { + for i := 0; i < b.N; i++ { wg.Add(1) go func() { defer wg.Done() @@ -187,8 +185,6 @@ func Benchmark_Pool_Echo_Batched(b *testing.B) { } wg.Wait() - - log.Println(float64(b.N*10) / time.Now().Sub(s).Seconds()) } func Benchmark_Pool_Echo_Replaced(b *testing.B) { |