From c91d3d699107f13100fea1e44a0130c39f24388c Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 19 Feb 2019 20:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=8F=20Update=20benchmark=20test=20for?= =?UTF-8?q?=20new=20function=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ants_benchmark_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ants_benchmark_test.go b/ants_benchmark_test.go index 93c8048..8013d6d 100644 --- a/ants_benchmark_test.go +++ b/ants_benchmark_test.go @@ -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()