Auto stash before merge of "develop" and "origin/develop"

This commit is contained in:
Andy Pan 2018-05-22 22:37:55 +08:00
parent d606fb79f6
commit ffe56cc35d
1 changed files with 2 additions and 0 deletions

View File

@ -41,8 +41,10 @@ func demoPoolFunc(args interface{}) error {
} }
func BenchmarkGoroutine(b *testing.B) { func BenchmarkGoroutine(b *testing.B) {
b.N = 1
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
var wg sync.WaitGroup var wg sync.WaitGroup
b.ResetTimer()
for j := 0; j < RunTimes; j++ { for j := 0; j < RunTimes; j++ {
wg.Add(1) wg.Add(1)
go func() { go func() {