summaryrefslogtreecommitdiff
path: root/pool_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-23 20:40:11 -0500
committerWolfy-J <[email protected]>2018-01-23 20:40:11 -0500
commitbd3411ec5fedd099bff11ee53df68c72dc60667c (patch)
treefc44438279f7be157d619ca086ff7688940978eb /pool_test.go
parent04c483e0a5a419f683a6e00430e1574d9353f355 (diff)
magic smoke
Diffstat (limited to 'pool_test.go')
-rw-r--r--pool_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pool_test.go b/pool_test.go
index 88926a9b..bb16fe4c 100644
--- a/pool_test.go
+++ b/pool_test.go
@@ -8,6 +8,7 @@ import (
"sync"
"testing"
"time"
+ "log"
)
var cfg = Config{
@@ -173,6 +174,7 @@ func Benchmark_Pool_Echo_Batched(b *testing.B) {
)
defer p.Destroy()
+ s := time.Now()
var wg sync.WaitGroup
for i := 0; i < b.N; i++ {
wg.Add(1)
@@ -185,6 +187,8 @@ func Benchmark_Pool_Echo_Batched(b *testing.B) {
}
wg.Wait()
+
+ log.Println(b.N / int(time.Now().Sub(s).Seconds()))
}
func Benchmark_Pool_Echo_Replaced(b *testing.B) {