redis-rb icon indicating copy to clipboard operation
redis-rb copied to clipboard

Enable to set read_bytes for performance issue

Open taka0125 opened this issue 5 years ago • 0 comments

I've made the parameter configurable so that I can cut back to the specific case of the service I'm running that causes performance problems

Benchmark

Here are the benchmark results

Creating redis_performance_redis-rb-benchmark_run ... done
Warming up --------------------------------------
   zrevrange(16_384)     19.167 i/s -      20.000 times in 1.043480s (52.17ms/i)
   zrevrange( 1_024)     33.066 i/s -      36.000 times in 1.088746s (30.24ms/i)
Calculating -------------------------------------
   zrevrange(16_384)     19.756 i/s -      57.000 times in 2.885145s (50.62ms/i)
   zrevrange( 1_024)     34.286 i/s -      99.000 times in 2.887510s (29.17ms/i)

Comparison:
   zrevrange( 1_024):        34.3 i/s
   zrevrange(16_384):        19.8 i/s - 1.74x  slower

https://github.com/taka0125/redis_performance

taka0125 avatar Oct 23 '20 14:10 taka0125