1. 19 Jun, 2017 1 commit
  2. 11 Nov, 2016 1 commit
  3. 12 Jul, 2016 1 commit
  4. 27 Jul, 2015 1 commit
  5. 14 Jul, 2015 1 commit
    • antirez's avatar
      Fix redis-benchmark sds binding. · 056a0ca1
      antirez authored
      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.
      056a0ca1
  6. 19 Jan, 2015 1 commit
    • Matt Stancliff's avatar
      Improve networking type correctness · 53c082ec
      Matt Stancliff authored
      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).
      53c082ec
  7. 02 Jan, 2015 1 commit
  8. 11 Dec, 2014 1 commit
  9. 01 Dec, 2014 2 commits
  10. 28 Nov, 2014 2 commits
  11. 27 Oct, 2014 1 commit
  12. 25 Aug, 2014 3 commits
  13. 13 Aug, 2014 1 commit
  14. 04 Jul, 2014 1 commit
  15. 28 Oct, 2013 1 commit
  16. 08 Aug, 2013 2 commits
    • antirez's avatar
      redis-benchmark: changes to random arguments substitution. · db862e8e
      antirez authored
      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.
      db862e8e
    • antirez's avatar
      redis-benchmark: replace snprintf()+memcpy with faster code. · 92ab77f8
      antirez authored
      This change was profiler-driven, but the actual effect is hard to
      measure in real-world redis benchmark runs.
      92ab77f8
  17. 07 Aug, 2013 2 commits
  18. 06 Aug, 2013 2 commits
  19. 20 Dec, 2012 1 commit
  20. 30 Nov, 2012 1 commit
  21. 08 Nov, 2012 1 commit
  22. 10 Oct, 2012 1 commit
    • NanXiao's avatar
      Update src/redis-benchmark.c · 9eb3a7bc
      NanXiao authored
      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).
      9eb3a7bc
  23. 21 Aug, 2012 1 commit
    • antirez's avatar
      redis-benchmark: disable big buffer cleanup in hiredis context. · 227b4293
      antirez authored
      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).
      227b4293
  24. 26 Feb, 2012 1 commit
  25. 23 Feb, 2012 2 commits
  26. 19 Feb, 2012 1 commit
  27. 31 Jan, 2012 1 commit
  28. 15 Dec, 2011 1 commit
  29. 07 Nov, 2011 1 commit
  30. 04 Nov, 2011 2 commits
  31. 03 Nov, 2011 1 commit