🐿 Simplify code.

This commit is contained in:
Andy Pan 2019-01-25 21:36:28 +08:00
parent e736e8fac6
commit e65a7d49b7
1 changed files with 0 additions and 7 deletions

View File

@ -42,12 +42,6 @@ func demoFunc() {
}
func demoPoolFunc(args interface{}) {
//m := args.(int)
//var n int
//for i := 0; i < m; i++ {
// n += i
//}
//return nil
n := args.(int)
time.Sleep(time.Duration(n) * time.Millisecond)
}
@ -99,7 +93,6 @@ func BenchmarkAntsPoolWithFunc(b *testing.B) {
p.Serve(benchParam)
}
wg.Wait()
//b.Logf("running goroutines: %d", p.Running())
}
b.StopTimer()
}