mirror of
https://github.com/redis/go-redis.git
synced 2025-07-19 11:43:14 +03:00
Add very basic cluster benchmark. Cleanup other benchmarks.
This commit is contained in:
@ -186,8 +186,10 @@ func BenchmarkPool(b *testing.B) {
|
||||
IdleTimeout: 100 * time.Millisecond,
|
||||
})
|
||||
defer client.Close()
|
||||
|
||||
pool := client.Pool()
|
||||
|
||||
b.ResetTimer()
|
||||
|
||||
b.RunParallel(func(pb *testing.PB) {
|
||||
for pb.Next() {
|
||||
conn, err := pool.Get()
|
||||
|
Reference in New Issue
Block a user