mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
PING / MSET benchmarks enabled again.
This commit is contained in:
parent
ca908473e8
commit
410dfe90b2
@ -500,7 +500,6 @@ int main(int argc, const char **argv) {
|
|||||||
memset(data,'x',config.datasize);
|
memset(data,'x',config.datasize);
|
||||||
data[config.datasize] = '\0';
|
data[config.datasize] = '\0';
|
||||||
|
|
||||||
#if 0
|
|
||||||
benchmark("PING (inline)","PING\r\n",6);
|
benchmark("PING (inline)","PING\r\n",6);
|
||||||
|
|
||||||
len = redisFormatCommand(&cmd,"PING");
|
len = redisFormatCommand(&cmd,"PING");
|
||||||
@ -516,7 +515,6 @@ int main(int argc, const char **argv) {
|
|||||||
len = redisFormatCommandArgv(&cmd,21,argv,NULL);
|
len = redisFormatCommandArgv(&cmd,21,argv,NULL);
|
||||||
benchmark("MSET (10 keys)",cmd,len);
|
benchmark("MSET (10 keys)",cmd,len);
|
||||||
free(cmd);
|
free(cmd);
|
||||||
#endif
|
|
||||||
|
|
||||||
len = redisFormatCommand(&cmd,"SET foo:rand:000000000000 %s",data);
|
len = redisFormatCommand(&cmd,"SET foo:rand:000000000000 %s",data);
|
||||||
benchmark("SET",cmd,len);
|
benchmark("SET",cmd,len);
|
||||||
|
Loading…
Reference in New Issue
Block a user