mirror of https://github.com/panjf2000/ants.git
correct the function name
This commit is contained in:
parent
4d7d0b1a8a
commit
1963c3c39b
|
@ -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)
|
||||
// }
|
||||
//}
|
||||
|
|
Loading…
Reference in New Issue