summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'static_pool_test.go')
-rw-r--r--static_pool_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index a78fcf11..b1a27990 100644
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -425,7 +425,11 @@ func Benchmark_Pool_Echo_Batched(b *testing.B) {
p, _ := NewPool(
func() *exec.Cmd { return exec.Command("php", "tests/client.php", "echo", "pipes") },
NewPipeFactory(),
- cfg,
+ Config{
+ NumWorkers: int64(runtime.NumCPU()),
+ AllocateTimeout: time.Second * 100,
+ DestroyTimeout: time.Second,
+ },
)
defer p.Destroy()