From 48cb233e4d498e6c02e98c12659433c2a6db93de Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 15 Jul 2018 21:22:20 +0800 Subject: [PATCH] update --- ants_benchmark_test.go | 4 ++-- ants_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ants_benchmark_test.go b/ants_benchmark_test.go index ea22d3d..c8623aa 100644 --- a/ants_benchmark_test.go +++ b/ants_benchmark_test.go @@ -42,9 +42,9 @@ const ( YiB // 1208925819614629174706176 ) const ( - RunTimes = 1000 + RunTimes = 10000000 Param = 10 - AntsSize = 100 + AntsSize = 100000 ) func demoFunc() error { diff --git a/ants_test.go b/ants_test.go index 913a6a6..f8df4bb 100644 --- a/ants_test.go +++ b/ants_test.go @@ -30,7 +30,7 @@ import ( "github.com/panjf2000/ants" ) -var n = 1000 +var n = 1000000 func TestAntsPoolWithFunc(t *testing.T) { var wg sync.WaitGroup