This commit is contained in:
Andy Pan 2018-07-15 23:58:09 +08:00
parent 68d55de6f8
commit c186871e60
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ const (
const ( const (
RunTimes = 10000000 RunTimes = 10000000
Param = 100 Param = 100
AntsSize = 500 AntsSize = 100
) )
func demoFunc() error { func demoFunc() error {

View File

@ -30,7 +30,7 @@ import (
"github.com/panjf2000/ants" "github.com/panjf2000/ants"
) )
var n = 1000000 var n = 100000
func TestAntsPoolWithFunc(t *testing.T) { func TestAntsPoolWithFunc(t *testing.T) {
var wg sync.WaitGroup var wg sync.WaitGroup