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) -// } -//}