forked from mirror/ants
🍏 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++ {
|
for i := 0; i < b.N; i++ {
|
||||||
wg.Add(RunTimes)
|
wg.Add(RunTimes)
|
||||||
for j := 0; j < RunTimes; j++ {
|
for j := 0; j < RunTimes; j++ {
|
||||||
p.Serve(benchParam)
|
p.Invoke(benchParam)
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ func BenchmarkAntsPool(b *testing.B) {
|
||||||
b.StartTimer()
|
b.StartTimer()
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
for j := 0; j < RunTimes; j++ {
|
for j := 0; j < RunTimes; j++ {
|
||||||
p.Serve(benchParam)
|
p.Invoke(benchParam)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
b.StopTimer()
|
b.StopTimer()
|
||||||
|
|
Loading…
Reference in New Issue