[Redis-benchmark] Remove zrem test, add zpopmin test
This commit is contained in:
parent
e5a50ed3c4
commit
6a06a5a597
@ -1433,7 +1433,8 @@ usage:
|
|||||||
" --cluster Enable cluster mode.\n"
|
" --cluster Enable cluster mode.\n"
|
||||||
" --enable-tracking Send CLIENT TRACKING on before starting benchmark.\n"
|
" --enable-tracking Send CLIENT TRACKING on before starting benchmark.\n"
|
||||||
" -k <boolean> 1=keep alive 0=reconnect (default 1)\n"
|
" -k <boolean> 1=keep alive 0=reconnect (default 1)\n"
|
||||||
" -r <keyspacelen> Use random keys for SET/GET/INCR, random values for SADD\n"
|
" -r <keyspacelen> Use random keys for SET/GET/INCR, random values for SADD,\n"
|
||||||
|
" random members and scores for ZADD.\n"
|
||||||
" Using this option the benchmark will expand the string __rand_int__\n"
|
" Using this option the benchmark will expand the string __rand_int__\n"
|
||||||
" inside an argument with a 12 digits number in the specified range\n"
|
" inside an argument with a 12 digits number in the specified range\n"
|
||||||
" from 0 to keyspacelen-1. The substitution changes every time a command\n"
|
" from 0 to keyspacelen-1. The substitution changes every time a command\n"
|
||||||
@ -1742,10 +1743,9 @@ int main(int argc, const char **argv) {
|
|||||||
free(cmd);
|
free(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (test_is_selected("zrem")) {
|
if (test_is_selected("zpopmin")) {
|
||||||
len = redisFormatCommand(&cmd,
|
len = redisFormatCommand(&cmd,"ZPOPMIN myzset:{tag}");
|
||||||
"ZREM myzset:{tag} element:__rand_int__");
|
benchmark("ZPOPMIN",cmd,len);
|
||||||
benchmark("ZREM",cmd,len);
|
|
||||||
free(cmd);
|
free(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user