mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
Improve benchmark
This commit is contained in:
parent
fe4c2d4918
commit
c3ab344f84
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user