mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
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++ {
|
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)
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user