diff --git a/ants_benchmark_test.go b/ants_benchmark_test.go index 5ff6d1a..0374d8a 100644 --- a/ants_benchmark_test.go +++ b/ants_benchmark_test.go @@ -44,7 +44,7 @@ const ( const ( RunTimes = 10000000 Param = 100 - AntsSize = 10000 + AntsSize = 500 ) func demoFunc() error { diff --git a/ants_test.go b/ants_test.go index 72250b4..297ddd3 100644 --- a/ants_test.go +++ b/ants_test.go @@ -47,6 +47,7 @@ func TestAntsPoolWithFunc(t *testing.T) { } wg.Wait() + t.Logf("pool with func, running workers number:%d", p.Running()) mem := runtime.MemStats{} runtime.ReadMemStats(&mem) t.Logf("memory usage:%d", mem.TotalAlloc/GiB)