mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 01:01:22 +00:00
benchmarking with different number of LRANGE elements. Ability to change the glue output buffer limit by #define
This commit is contained in:
18
benchmark.c
18
benchmark.c
@ -574,6 +574,24 @@ int main(int argc, char **argv) {
|
||||
aeMain(config.el);
|
||||
endBenchmark("LRANGE (first 300 elements)");
|
||||
|
||||
prepareForBenchmark();
|
||||
c = createClient();
|
||||
if (!c) exit(1);
|
||||
c->obuf = sdscat(c->obuf,"LRANGE mylist 0 449\r\n");
|
||||
prepareClientForReply(c,REPLY_MBULK);
|
||||
createMissingClients(c);
|
||||
aeMain(config.el);
|
||||
endBenchmark("LRANGE (first 450 elements)");
|
||||
|
||||
prepareForBenchmark();
|
||||
c = createClient();
|
||||
if (!c) exit(1);
|
||||
c->obuf = sdscat(c->obuf,"LRANGE mylist 0 599\r\n");
|
||||
prepareClientForReply(c,REPLY_MBULK);
|
||||
createMissingClients(c);
|
||||
aeMain(config.el);
|
||||
endBenchmark("LRANGE (first 600 elements)");
|
||||
|
||||
printf("\n");
|
||||
} while(config.loop);
|
||||
|
||||
|
Reference in New Issue
Block a user