Redis
[Redis] 성능테스트 redis-benchmark
먹세
2023. 2. 14. 14:38
Redis가 기본적으로 제공하는 성능테스트 기능
//redis 설치경로
// 기본 10만회씩 SET/GET/SADD 등등 기본명령어 테스트
$ /usr/local/bin/redis-benchmark -p 6379
// -n 옵션으로 횟수 설정 가능(default 10만회)
$ /usr/local/bin/redis-benchmark -p 6379 -n
결과
====== PING_INLINE ======
100000 requests completed in 0.93 seconds
50 parallel clients
3 bytes payload
keep alive: 1
multi-thread: no
Latency by percentile distribution:
0.000% <= 0.047 milliseconds (cumulative count 1)
50.000% <= 0.231 milliseconds (cumulative count 54461)
75.000% <= 0.255 milliseconds (cumulative count 75843)
87.500% <= 0.295 milliseconds (cumulative count 88675)
93.750% <= 0.335 milliseconds (cumulative count 94539)
96.875% <= 0.367 milliseconds (cumulative count 97295)
98.438% <= 0.399 milliseconds (cumulative count 98639)
99.219% <= 0.431 milliseconds (cumulative count 99311)
99.609% <= 0.471 milliseconds (cumulative count 99644)
99.805% <= 0.527 milliseconds (cumulative count 99821)
99.902% <= 0.567 milliseconds (cumulative count 99906)
99.951% <= 0.615 milliseconds (cumulative count 99956)
99.976% <= 0.631 milliseconds (cumulative count 99978)
99.988% <= 0.647 milliseconds (cumulative count 99992)
99.994% <= 0.663 milliseconds (cumulative count 99994)
99.997% <= 0.671 milliseconds (cumulative count 99997)
99.998% <= 0.679 milliseconds (cumulative count 99999)
99.999% <= 0.687 milliseconds (cumulative count 100000)
100.000% <= 0.687 milliseconds (cumulative count 100000)
Cumulative distribution of latencies:
0.016% <= 0.103 milliseconds (cumulative count 16)
24.708% <= 0.207 milliseconds (cumulative count 24708)
90.022% <= 0.303 milliseconds (cumulative count 90022)
98.873% <= 0.407 milliseconds (cumulative count 98873)
99.743% <= 0.503 milliseconds (cumulative count 99743)
99.948% <= 0.607 milliseconds (cumulative count 99948)
100.000% <= 0.703 milliseconds (cumulative count 100000)
Summary:
throughput summary: 107411.38 requests per second
latency summary (msec):
avg min p50 p95 p99 max
0.239 0.040 0.231 0.343 0.415 0.687
====== PING_MBULK ======
100000 requests completed in 0.95 seconds
50 parallel clients
3 bytes payload
keep alive: 1
multi-thread: no
Latency by percentile distribution:
0.000% <= 0.047 milliseconds (cumulative count 1)
50.000% <= 0.239 milliseconds (cumulative count 56633)
75.000% <= 0.263 milliseconds (cumulative count 76926)
87.500% <= 0.295 milliseconds (cumulative count 88146)
93.750% <= 0.335 milliseconds (cumulative count 94010)
96.875% <= 0.367 milliseconds (cumulative count 96895)
98.438% <= 0.407 milliseconds (cumulative count 98600)
99.219% <= 0.439 milliseconds (cumulative count 99275)
99.609% <= 0.479 milliseconds (cumulative count 99643)
99.805% <= 0.527 milliseconds (cumulative count 99819)
99.902% <= 0.551 milliseconds (cumulative count 99909)
99.951% <= 0.591 milliseconds (cumulative count 99955)
99.976% <= 0.615 milliseconds (cumulative count 99984)
99.988% <= 0.631 milliseconds (cumulative count 99988)
99.994% <= 0.647 milliseconds (cumulative count 99994)
99.997% <= 0.671 milliseconds (cumulative count 99997)
99.998% <= 0.687 milliseconds (cumulative count 99999)
99.999% <= 0.703 milliseconds (cumulative count 100000)
100.000% <= 0.703 milliseconds (cumulative count 100000)
Cumulative distribution of latencies:
0.006% <= 0.103 milliseconds (cumulative count 6)
20.020% <= 0.207 milliseconds (cumulative count 20020)
89.596% <= 0.303 milliseconds (cumulative count 89596)
98.600% <= 0.407 milliseconds (cumulative count 98600)
99.723% <= 0.503 milliseconds (cumulative count 99723)
99.975% <= 0.607 milliseconds (cumulative count 99975)
100.000% <= 0.703 milliseconds (cumulative count 100000)
Summary:
throughput summary: 104931.80 requests per second
latency summary (msec):
avg min p50 p95 p99 max
0.244 0.040 0.239 0.351 0.423 0.703
====== SET ======
100000 requests completed in 0.97 seconds
50 parallel clients
3 bytes payload
keep alive: 1
multi-thread: no
Latency by percentile distribution:
0.000% <= 0.071 milliseconds (cumulative count 2)
50.000% <= 0.239 milliseconds (cumulative count 53506)
75.000% <= 0.271 milliseconds (cumulative count 78435)
87.500% <= 0.303 milliseconds (cumulative count 87938)
93.750% <= 0.343 milliseconds (cumulative count 94009)
96.875% <= 0.383 milliseconds (cumulative count 97044)
98.438% <= 0.423 milliseconds (cumulative count 98562)
99.219% <= 0.463 milliseconds (cumulative count 99238)
99.609% <= 0.543 milliseconds (cumulative count 99620)
99.805% <= 0.583 milliseconds (cumulative count 99814)
99.902% <= 0.639 milliseconds (cumulative count 99906)
99.951% <= 0.671 milliseconds (cumulative count 99958)
99.976% <= 0.695 milliseconds (cumulative count 99976)
99.988% <= 0.831 milliseconds (cumulative count 99989)
99.994% <= 0.847 milliseconds (cumulative count 99995)
99.997% <= 0.863 milliseconds (cumulative count 100000)
100.000% <= 0.863 milliseconds (cumulative count 100000)
Cumulative distribution of latencies:
0.011% <= 0.103 milliseconds (cumulative count 11)
17.710% <= 0.207 milliseconds (cumulative count 17710)
87.938% <= 0.303 milliseconds (cumulative count 87938)
98.068% <= 0.407 milliseconds (cumulative count 98068)
99.505% <= 0.503 milliseconds (cumulative count 99505)
99.874% <= 0.607 milliseconds (cumulative count 99874)
99.978% <= 0.703 milliseconds (cumulative count 99978)
99.983% <= 0.807 milliseconds (cumulative count 99983)
100.000% <= 0.903 milliseconds (cumulative count 100000)
Summary:
throughput summary: 102774.92 requests per second
latency summary (msec):
avg min p50 p95 p99 max
0.249 0.064 0.239 0.359 0.447 0.863
====== GET ======
100000 requests completed in 0.97 seconds
50 parallel clients
3 bytes payload
keep alive: 1
multi-thread: no
Latency by percentile distribution:
0.000% <= 0.055 milliseconds (cumulative count 3)
50.000% <= 0.239 milliseconds (cumulative count 52147)
75.000% <= 0.271 milliseconds (cumulative count 78991)
87.500% <= 0.303 milliseconds (cumulative count 89112)
93.750% <= 0.335 milliseconds (cumulative count 93885)
96.875% <= 0.375 milliseconds (cumulative count 97299)
98.438% <= 0.407 milliseconds (cumulative count 98617)
99.219% <= 0.439 milliseconds (cumulative count 99321)
99.609% <= 0.479 milliseconds (cumulative count 99627)
99.805% <= 0.551 milliseconds (cumulative count 99823)
99.902% <= 0.591 milliseconds (cumulative count 99905)
99.951% <= 0.639 milliseconds (cumulative count 99968)
99.976% <= 0.647 milliseconds (cumulative count 99976)
99.988% <= 0.711 milliseconds (cumulative count 99989)
99.994% <= 0.719 milliseconds (cumulative count 99996)
99.997% <= 0.727 milliseconds (cumulative count 99997)
99.998% <= 0.743 milliseconds (cumulative count 99999)
99.999% <= 0.767 milliseconds (cumulative count 100000)
100.000% <= 0.767 milliseconds (cumulative count 100000)
Cumulative distribution of latencies:
0.009% <= 0.103 milliseconds (cumulative count 9)
16.380% <= 0.207 milliseconds (cumulative count 16380)
89.112% <= 0.303 milliseconds (cumulative count 89112)
98.617% <= 0.407 milliseconds (cumulative count 98617)
99.709% <= 0.503 milliseconds (cumulative count 99709)
99.924% <= 0.607 milliseconds (cumulative count 99924)
99.987% <= 0.703 milliseconds (cumulative count 99987)
100.000% <= 0.807 milliseconds (cumulative count 100000)
Summary:
throughput summary: 103305.79 requests per second
latency summary (msec):
avg min p50 p95 p99 max
0.248 0.048 0.239 0.351 0.423 0.767
참고
https://m.blog.naver.com/theswice/221498409357
반응형