mirror of
https://github.com/fluencelabs/redis
synced 2025-04-06 17:41:03 +00:00
Make the MSET benchmark *really* work with 10 keys
This commit is contained in:
parent
f2f2424e00
commit
d69a483556
@ -479,11 +479,13 @@ int main(int argc, char **argv) {
|
|||||||
benchmark("PING",cmd,len);
|
benchmark("PING",cmd,len);
|
||||||
free(cmd);
|
free(cmd);
|
||||||
|
|
||||||
const char *argv[11];
|
const char *argv[21];
|
||||||
argv[0] = "MSET";
|
argv[0] = "MSET";
|
||||||
for (i = 1; i < 11; i++)
|
for (i = 1; i < 21; i += 2) {
|
||||||
argv[i] = data;
|
argv[i] = "foo:rand:000000000000";
|
||||||
len = redisFormatCommandArgv(&cmd,11,argv,NULL);
|
argv[i+1] = data;
|
||||||
|
}
|
||||||
|
len = redisFormatCommandArgv(&cmd,21,argv,NULL);
|
||||||
benchmark("MSET (10 keys)",cmd,len);
|
benchmark("MSET (10 keys)",cmd,len);
|
||||||
free(cmd);
|
free(cmd);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user