🍏 Update benchmark test for new function name

This commit is contained in:
Andy Pan 2019-02-19 20:10:31 +08:00
parent b8d6f7f9d6
commit c91d3d6991
1 changed files with 2 additions and 2 deletions

View File

@ -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()