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