mirror of https://github.com/panjf2000/ants.git
Auto stash before merge of "develop" and "origin/develop"
This commit is contained in:
parent
d606fb79f6
commit
ffe56cc35d
|
@ -41,8 +41,10 @@ func demoPoolFunc(args interface{}) error {
|
|||
}
|
||||
|
||||
func BenchmarkGoroutine(b *testing.B) {
|
||||
b.N = 1
|
||||
for i := 0; i < b.N; i++ {
|
||||
var wg sync.WaitGroup
|
||||
b.ResetTimer()
|
||||
for j := 0; j < RunTimes; j++ {
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
|
|
Loading…
Reference in New Issue