From 3cf448db0e123755cbb91462638aedcec071777d Mon Sep 17 00:00:00 2001 From: siddontang Date: Tue, 13 May 2014 09:24:18 +0800 Subject: [PATCH] update zest range benchmark --- cmd/ledis-benchmark/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ledis-benchmark/main.go b/cmd/ledis-benchmark/main.go index d0a8ced..ac67411 100644 --- a/cmd/ledis-benchmark/main.go +++ b/cmd/ledis-benchmark/main.go @@ -187,7 +187,7 @@ func benchZIncr() { func benchZRangeByScore() { f := func() { - waitBench("zrangebyscore", "myzsetkey", 0, rand.Int()) + waitBench("zrangebyscore", "myzsetkey", 0, rand.Int(), "withscores", "limit", rand.Int()%100, 100) } bench("zrangebyscore", f) @@ -203,7 +203,7 @@ func benchZRangeByRank() { func benchZRevRangeByScore() { f := func() { - waitBench("zrevrangebyscore", "myzsetkey", 0, rand.Int()) + waitBench("zrevrangebyscore", "myzsetkey", 0, rand.Int(), "withscores", "limit", rand.Int()%100, 100) } bench("zrevrangebyscore", f)