forked from mirror/ledisdb
update zest range benchmark
This commit is contained in:
parent
44ecf7a7b7
commit
3cf448db0e
|
@ -187,7 +187,7 @@ func benchZIncr() {
|
||||||
|
|
||||||
func benchZRangeByScore() {
|
func benchZRangeByScore() {
|
||||||
f := func() {
|
f := func() {
|
||||||
waitBench("zrangebyscore", "myzsetkey", 0, rand.Int())
|
waitBench("zrangebyscore", "myzsetkey", 0, rand.Int(), "withscores", "limit", rand.Int()%100, 100)
|
||||||
}
|
}
|
||||||
|
|
||||||
bench("zrangebyscore", f)
|
bench("zrangebyscore", f)
|
||||||
|
@ -203,7 +203,7 @@ func benchZRangeByRank() {
|
||||||
|
|
||||||
func benchZRevRangeByScore() {
|
func benchZRevRangeByScore() {
|
||||||
f := func() {
|
f := func() {
|
||||||
waitBench("zrevrangebyscore", "myzsetkey", 0, rand.Int())
|
waitBench("zrevrangebyscore", "myzsetkey", 0, rand.Int(), "withscores", "limit", rand.Int()%100, 100)
|
||||||
}
|
}
|
||||||
|
|
||||||
bench("zrevrangebyscore", f)
|
bench("zrevrangebyscore", f)
|
||||||
|
|
Loading…
Reference in New Issue