From 1963c3c39b39d59132f9df1fe57e8ab4393bd150 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 20 May 2018 21:23:44 +0800 Subject: [PATCH] correct the function name --- ants_benchmark_test.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ants_benchmark_test.go b/ants_benchmark_test.go index f6a1bdc..2ebbc01 100644 --- a/ants_benchmark_test.go +++ b/ants_benchmark_test.go @@ -22,7 +22,7 @@ func BenchmarkGoroutine(b *testing.B) { } } -func BenchmarkPoolGroutine(b *testing.B) { +func BenchmarkPoolGoroutine(b *testing.B) { for i := 0; i < b.N; i++ { var wg sync.WaitGroup for j := 0; j < RunTimes; j++ { @@ -35,11 +35,3 @@ func BenchmarkPoolGroutine(b *testing.B) { wg.Wait() } } - -//func BenchmarkPoolGroutine(b *testing.B) { -// p := ants.NewPool(size) -// b.ResetTimer() -// for i := 0; i < b.N; i++ { -// p.Push(demoFunc) -// } -//}