correct the function name

This commit is contained in:
Andy Pan 2018-05-20 21:23:44 +08:00
parent 4d7d0b1a8a
commit 1963c3c39b

View File

@ -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++ { for i := 0; i < b.N; i++ {
var wg sync.WaitGroup var wg sync.WaitGroup
for j := 0; j < RunTimes; j++ { for j := 0; j < RunTimes; j++ {
@ -35,11 +35,3 @@ func BenchmarkPoolGroutine(b *testing.B) {
wg.Wait() wg.Wait()
} }
} }
//func BenchmarkPoolGroutine(b *testing.B) {
// p := ants.NewPool(size)
// b.ResetTimer()
// for i := 0; i < b.N; i++ {
// p.Push(demoFunc)
// }
//}