Permalink
Browse files

bench fix

  • Loading branch information...
1 parent c138fcb commit 3b0017f5bf2e2d15c5ba7bacf68099972633b74a Simon Zimmermann committed Sep 22, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 exp/bench/bench.go
  2. +1 −1 exp/bench/tests.go
View
2 exp/bench/bench.go
@@ -59,7 +59,7 @@ func BenchmarkMock(handle func(*redis.Client, chan bool)) time.Duration {
}
func BenchmarkRedis(handle func(*redis.Client, chan bool)) time.Duration {
- c := redis.NewClient("")
+ c := redis.NewClient("tcp:127.0.0.1:6379",13, "")
//if _, err := c.Call("FLUSHDB"); err != nil {
// fmt.Fprintln(os.Stderr, err.Error())
View
2 exp/bench/tests.go
@@ -43,7 +43,7 @@ func setPipelineHandle(c *redis.Client, ch chan bool) {
if send == *P {
for i := 0; i < *P; i++ {
- p.Poll()
+ p.Read()
}
send = 0
}

0 comments on commit 3b0017f

Please sign in to comment.