summaryrefslogtreecommitdiff
path: root/src/redis-benchmark.c
Commit message (Collapse)AuthorAgeFilesLines
* redis-benchmark: new option to show server errors on stdout.antirez2016-07-121-1/+17
| | | | | Disabled by default, can be activated with -e. Maybe the reverse was more safe but departs from the past behavior.
* RDMF: More consistent define names.antirez2015-07-271-10/+10
|
* Fix redis-benchmark sds binding.antirez2015-07-141-1/+1
| | | | | | Same as redis-cli, now redis-benchmark requires to use hiredis sds copy since it is different compared to the memory optimized fork of Redis sds.
* Improve networking type correctnessMatt Stancliff2015-01-191-2/+2
| | | | | | | | read() and write() return ssize_t (signed long), not int. For other offsets, we can use the unsigned size_t type instead of a signed offset (since our replication offsets and buffer positions are never negative).
* redis-benchmark: Add RPUSH and RPOP testsMatt Stancliff2015-01-021-0/+12
|
* Removed useless space in redis-benchmark.c.antirez2014-12-111-1/+1
|
* Merge pull request #2105 from Hailei/fix-redis-benchmark-idle-IDLESalvatore Sanfilippo2014-12-111-3/+8
|\ | | | | FIXED redis-benchmark's idle mode.With idle mode shouldn't create write event
| * FIXED redis-benchmark's idle mode.With idle mode shouldn't create write eventzhanghailei2014-10-271-3/+8
| |
* | Merge pull request #2176 from deepakverma/redis_bench_authfixSalvatore Sanfilippo2014-12-091-28/+30
|\ \ | | | | | | redis-benchmark AUTH command to be discarded after the first send #2150
| * | replaced // comments #2150Deepak Verma2014-12-011-2/+2
| | |
| * | redis-benchmark AUTH command to be discarded after the first send #2150azure provisioned user2014-12-011-28/+30
| |/
* | redis-benchmark: default num of requests is now 100000.antirez2014-11-281-2/+2
| | | | | | | | | | 10000 completes in a too short time and may easily provide unreliable figures because of tiny duration.
* | fix benchmark memleak in loop modeMatthias Petschick2014-11-281-1/+1
|/
* Fix redis-benchmark abort output1906-mergeMatt Stancliff2014-08-251-1/+1
|
* redis-benchmark: Remove unused bufferMatt Stancliff2014-08-251-9/+0
| | | | | | | | | | This just deletes old code that didn't get removed when logic changed. We were setting offsets that never got read anywhere. Since clients are now just cloned, we don't need to track per-client buffer offsets anywhere because they are all the same from the original client.
* redis-benchmark: add auth optionCharSyam2014-08-251-0/+14
| | | | Closes #1097
* Remove warnings and improve integer sign correctness.antirez2014-08-131-2/+2
|
* redis-benchmark: abort when all clients are disconnected.antirez2014-07-041-0/+5
|
* redis-benchmark: update help for new __rand_int__ form.antirez2013-10-281-6/+5
|
* redis-benchmark: changes to random arguments substitution.antirez2013-08-081-28/+80
| | | | | | | | | | | | | | | | | | | | | Before this commit redis-benchmark supported random argumetns in the form of :rand:000000000000. In every string of that form, the zeros were replaced with a random number of 12 digits at every command invocation. However this was far from perfect as did not allowed to generate simply random numbers as arguments, there was always the :rand: prefix. Now instead every argument in the form __rand_int__ is replaced with a 12 digits number. Note that "__rand_int__" is 12 characters itself. In order to implement the new semantic, it was needed to change a few thigns in the internals of redis-benchmark, as new clients are created cloning old clients, so without a stable prefix such as ":rand:" the old way of cloning the client was no longer able to understand, from the old command line, what was the position of the random strings to substitute. Now instead a client structure is passed as a reference for cloning, so that we can directly clone the offsets inside the command line.
* redis-benchmark: replace snprintf()+memcpy with faster code.antirez2013-08-081-5/+10
| | | | | This change was profiler-driven, but the actual effect is hard to measure in real-world redis benchmark runs.
* redis-benchmark: fix memory leak introduced by 346256fantirez2013-08-071-0/+1
|
* redis-benchmark: max pipeline length hardcoded limit removed.antirez2013-08-071-7/+15
|
* redis-benchmark: fix db selection when :rand: feature is used.antirez2013-08-061-0/+6
|
* redis-benchmark: ability to SELECT a specifid db number.antirez2013-08-061-3/+43
|
* Fix overflow in mstime() in redis-cli and benchmark.antirez2012-12-201-1/+1
| | | | | | | The problem does not exist in the Redis server implementation of mstime() but is only limited to redis-cli and redis-benchmark. Thix fixes issue #839.
* redis-benchmark: seed the PRNG with time() at startup.antirez2012-11-301-0/+2
|
* BSD license added to every C source and header file.antirez2012-11-081-1/+1
|
* Update src/redis-benchmark.cNanXiao2012-10-101-1/+4
| | | | | | | | | | | | | | The code of current implementation: if (c->pending == 0) clientDone(c); In clientDone function, the c's memory has been freed, then the loop will continue: while(c->pending). The memory of c has been freed now, so c->pending is invalid (c is an invalid pointer now), and this will cause memory dump in some platforams(eg: Solaris). So I think the code should be modified as: if (c->pending == 0) { clientDone(c); break; } and this will not lead to while(c->pending).
* redis-benchmark: disable big buffer cleanup in hiredis context.antirez2012-08-211-0/+2
| | | | | | | This new hiredis features allows us to reuse a previous context reader buffer even if already very big in order to maximize performances with big payloads (Usually hiredis re-creates buffers when they are too big and unused in order to save memory).
* fix redis-benchmark memory leakPremysl Hruby2012-02-261-0/+2
|
* redis-benchmark: a few fixes to pipelining implementation.antirez2012-02-231-6/+4
|
* redis-benchmark: Initial support for pipelining.antirez2012-02-231-14/+34
|
* The hiredis lib shipped with Redis was updated to latest version.antirez2012-02-191-1/+1
|
* Fixed redis-benchmark --help output typoantirez2012-01-311-2/+4
|
* Max limit to 10k clients removed, this implements feature request on issue #194antirez2011-12-151-1/+1
|
* redis-benchmark: ability to run selected tests. Better help with examples.antirez2011-11-071-67/+142
|
* csv output for redis-benchmarkantirez2011-11-041-2/+10
|
* PING / MSET benchmarks enabled again.antirez2011-11-041-2/+0
|
* further optimizations for the multi bulk protocol parsing code when big ↵antirez2011-11-031-1/+3
| | | | objects are transmitted to Redis.
* Enforce upper bound for number of requests in redis-benchmarkPieter Noordhuis2011-09-161-11/+19
|
* There is no debug mode in benchmark toolPieter Noordhuis2011-06-011-6/+1
|
* Provide custom command to benchmark against via argsPieter Noordhuis2011-06-011-52/+90
|
* More const's in redis-benchmark.cPieter Noordhuis2011-06-011-11/+11
|
* portability fix in redis benchmark, using zu format specified with size_t ↵antirez2011-01-241-1/+1
| | | | instead of lu
* Randomize keys and set start time when first write event firesPieter Noordhuis2010-12-231-15/+5
|
* Find substrings to randomize when the client is createdPieter Noordhuis2010-12-231-31/+27
|
* Make the MSET benchmark *really* work with 10 keysPieter Noordhuis2010-12-221-4/+6
|
* Remove code duplicationPieter Noordhuis2010-12-221-111/+34
|
* Add wait states to deal with many connections.Didier Spezia2010-12-181-0/+11
|