From 6572f3c719321cb6ab4a1a46711348862dcbcf69 Mon Sep 17 00:00:00 2001 From: siddontang Date: Wed, 29 Oct 2014 17:52:31 +0800 Subject: [PATCH] update benchmark --- cmd/ledis-benchmark/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/ledis-benchmark/main.go b/cmd/ledis-benchmark/main.go index 6437f10..5ac7e98 100644 --- a/cmd/ledis-benchmark/main.go +++ b/cmd/ledis-benchmark/main.go @@ -18,7 +18,7 @@ var number = flag.Int("n", 1000, "request number") var clients = flag.Int("c", 50, "number of clients") var round = flag.Int("r", 1, "benchmark round number") var valueSize = flag.Int("vsize", 100, "kv value size") -var tests = flag.String("t", "", "only run the comma separated list of tests, set,get,del,lpush,lrange,lpop,hset,hget,hdel,zadd,zincr,zrange,zrevrange,zdel") +var tests = flag.String("t", "", "only run the comma separated list of tests, set,get,randget,del,lpush,lrange,lpop,hset,hget,hdel,zadd,zincr,zrange,zrevrange,zdel") var wg sync.WaitGroup var client *ledis.Client @@ -312,6 +312,9 @@ func main() { if checkTest("get") { benchGet() + } + + if checkTest("rangeget") { benchRandGet() }