From e65a7d49b76d658d31eade9e9c6eab758f87b440 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Fri, 25 Jan 2019 21:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=BF=20Simplify=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ants_benchmark_test.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ants_benchmark_test.go b/ants_benchmark_test.go index 2b1f327..93c8048 100644 --- a/ants_benchmark_test.go +++ b/ants_benchmark_test.go @@ -42,12 +42,6 @@ func demoFunc() { } func demoPoolFunc(args interface{}) { - //m := args.(int) - //var n int - //for i := 0; i < m; i++ { - // n += i - //} - //return nil n := args.(int) time.Sleep(time.Duration(n) * time.Millisecond) } @@ -99,7 +93,6 @@ func BenchmarkAntsPoolWithFunc(b *testing.B) { p.Serve(benchParam) } wg.Wait() - //b.Logf("running goroutines: %d", p.Running()) } b.StopTimer() }