Skip to content

Commit 2a84927

Browse files
committed
redis-benchmark: add -t hset target.
1 parent 53cb27b commit 2a84927

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/redis-benchmark.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,13 @@ int main(int argc, const char **argv) {
779779
free(cmd);
780780
}
781781

782+
if (test_is_selected("hset")) {
783+
len = redisFormatCommand(&cmd,
784+
"HSET myset:__rand_int__ element:__rand_int__ %s",data);
785+
benchmark("HSET",cmd,len);
786+
free(cmd);
787+
}
788+
782789
if (test_is_selected("spop")) {
783790
len = redisFormatCommand(&cmd,"SPOP myset");
784791
benchmark("SPOP",cmd,len);

0 commit comments

Comments
 (0)