From c3ab344f84ef6f9429319fc79cb38b3a4f92d9d2 Mon Sep 17 00:00:00 2001 From: Dimitrij Denissenko Date: Sat, 31 Jan 2015 12:01:21 +0000 Subject: [PATCH] Improve benchmark --- pool_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pool_test.go b/pool_test.go index 051df1d..311bccd 100644 --- a/pool_test.go +++ b/pool_test.go @@ -3,6 +3,7 @@ package redis_test import ( "sync" "testing" + "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -134,7 +135,8 @@ var _ = Describe("Pool", func() { func BenchmarkPool(b *testing.B) { client := redis.NewClient(&redis.Options{ - Addr: redisAddr, + Addr: redisAddr, + IdleTimeout: 100 * time.Millisecond, }) defer client.Close()