From 2ae733d924e3c30cd7548136dca2c752cd2e4617 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 19 Jun 2017 09:41:11 +0200 Subject: redis-benchmark: add -t hset target. --- src/redis-benchmark.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index f382019a4..be15b2417 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -779,6 +779,13 @@ int main(int argc, const char **argv) { free(cmd); } + if (test_is_selected("hset")) { + len = redisFormatCommand(&cmd, + "HSET myset:__rand_int__ element:__rand_int__ %s",data); + benchmark("HSET",cmd,len); + free(cmd); + } + if (test_is_selected("spop")) { len = redisFormatCommand(&cmd,"SPOP myset"); benchmark("SPOP",cmd,len); -- cgit v1.2.1