Skip to content

Commit

Permalink
Improve benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
dim committed Jan 31, 2015
1 parent fe4c2d4 commit c3ab344
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package redis_test
import (
"sync"
"testing"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit c3ab344

Please sign in to comment.