Skip to content

Commit

Permalink
Merge ddac010 into 3d67e08
Browse files Browse the repository at this point in the history
  • Loading branch information
colega committed Jul 16, 2020
2 parents 3d67e08 + ddac010 commit 00b6529
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions runner_pool_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ func BenchmarkCreatePool(b *testing.B) {
for i := 0; i < b.N; i++ {
cfg := Config{Workers: n}
pool := New(cfg, goRunner)
err := pool.Start()
_ = err
b.StopTimer()
_ = pool.Start()
w, err := pool.Worker(context.Background())
if err != nil {
panic(err)
}
w.Release()

_ = pool.Stop(context.Background())
b.StartTimer()
}
})
}
Expand Down

0 comments on commit 00b6529

Please sign in to comment.