diff --git a/ants_benchmark_test.go b/ants_benchmark_test.go index 0374d8a..af0ef99 100644 --- a/ants_benchmark_test.go +++ b/ants_benchmark_test.go @@ -44,7 +44,7 @@ const ( const ( RunTimes = 10000000 Param = 100 - AntsSize = 500 + AntsSize = 100 ) func demoFunc() error { diff --git a/ants_test.go b/ants_test.go index 297ddd3..5edf9c4 100644 --- a/ants_test.go +++ b/ants_test.go @@ -30,7 +30,7 @@ import ( "github.com/panjf2000/ants" ) -var n = 1000000 +var n = 100000 func TestAntsPoolWithFunc(t *testing.T) { var wg sync.WaitGroup