Skip to content

Commit

Permalink
benchmark publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
ybrs committed Jul 10, 2013
1 parent 64b3b9b commit d7058bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/redis-benchmark.c
Expand Up @@ -676,6 +676,13 @@ int main(int argc, const char **argv) {
free(cmd);
}

if (test_is_selected("publish")) {
len = redisFormatCommand(&cmd,"PUBLISH foo:rand:000000000000 %s",data);
benchmark("PUBLISH",cmd,len);
free(cmd);
}


This comment has been minimized.

Copy link
@moreaki

moreaki Aug 20, 2013

Nitpicking, but I'd drop this additional empty line. Otherwise obviously correct patch.

if (!config.csv) printf("\n");
} while(config.loop);

Expand Down

0 comments on commit d7058bd

Please sign in to comment.