mirror of https://github.com/panjf2000/ants.git
🍏 Update benchmark test for new function name
This commit is contained in:
parent
b8d6f7f9d6
commit
c91d3d6991
|
@ -90,7 +90,7 @@ func BenchmarkAntsPoolWithFunc(b *testing.B) {
|
|||
for i := 0; i < b.N; i++ {
|
||||
wg.Add(RunTimes)
|
||||
for j := 0; j < RunTimes; j++ {
|
||||
p.Serve(benchParam)
|
||||
p.Invoke(benchParam)
|
||||
}
|
||||
wg.Wait()
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ func BenchmarkAntsPool(b *testing.B) {
|
|||
b.StartTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for j := 0; j < RunTimes; j++ {
|
||||
p.Serve(benchParam)
|
||||
p.Invoke(benchParam)
|
||||
}
|
||||
}
|
||||
b.StopTimer()
|
||||
|
|
Loading…
Reference in New Issue