From ffe56cc35d61003bb689bb7f125fc04b1a3839d1 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 22 May 2018 22:37:55 +0800 Subject: [PATCH] Auto stash before merge of "develop" and "origin/develop" --- ants_benchmark_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ants_benchmark_test.go b/ants_benchmark_test.go index 2f44ba1..37234fc 100644 --- a/ants_benchmark_test.go +++ b/ants_benchmark_test.go @@ -41,8 +41,10 @@ func demoPoolFunc(args interface{}) error { } func BenchmarkGoroutine(b *testing.B) { + b.N = 1 for i := 0; i < b.N; i++ { var wg sync.WaitGroup + b.ResetTimer() for j := 0; j < RunTimes; j++ { wg.Add(1) go func() {