You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is confused me that, it has a big difference in performance when I use benchmark to test multi-threaded I/O.
But I can not find out any difference when I test it by Redis client which used in my company.
I noticed that if I want to test Redis using benchmark, i should run the benchmark itself in threaded mode. What's the difference between threaded mode and normal mode?
Test set: open 10 threads; 100w requests in each thread; key in 30 bytes; value in 512 bytes
Test get: open 10 threads; 100w requests in each thread; key in 30 bytes; value in 512 bytes
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It is confused me that, it has a big difference in performance when I use benchmark to test multi-threaded I/O.
But I can not find out any difference when I test it by Redis client which used in my company.
I noticed that if I want to test Redis using benchmark, i should run the benchmark itself in threaded mode. What's the difference between threaded mode and normal mode?
version: 7.0.5
Benchmark
benchmark command:
./redis-benchmark -p 6380 -c 10 -n 1000000 -d 512 --cluster --threads 6 -t get,set
and it has a great improvement in throughput.
Our Client
Test set: open 10 threads; 100w requests in each thread; key in 30 bytes; value in 512 bytes
Test get: open 10 threads; 100w requests in each thread; key in 30 bytes; value in 512 bytes
configuration:
io-threads 1 / 4 / 6
io-threads-do-reads no / yes
There is not any difference in performance.
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions