1
0
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:
Vladimir Mihailenco
2015-04-28 18:14:19 +03:00
parent 6313dc03a7
commit e6d90baaf8
3 changed files with 333 additions and 207 deletions

View File

@ -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()