====== 14 redis-benchmark ======
redis-benchmarkはシンプルで簡単なのが良い。
[[01_linux:09_ベンチマーク:12_memtier_benchmark]]より簡単です。
===== 1.インストール =====
redis-serverをインストールすると、自動でredis-benchmarkも入る。
apt install redis-server
===== 2.起動確認 =====
# systemctl status redis-server
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-11-19 04:45:16 UTC; 2h 17min ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Main PID: 7333 (redis-server)
Tasks: 4 (limit: 4677)
Memory: 4.7M
CGroup: /system.slice/redis-server.service
└─7333 /usr/bin/redis-server 127.0.0.1:6379
Nov 19 04:45:16 vm-ubuntu-20-4 systemd[1]: Starting Advanced key-value store...
Nov 19 04:45:16 vm-ubuntu-20-4 systemd[1]: redis-server.service: Can't open PID file /run/redis/redis-server.pid (yet?) after start: >
Nov 19 04:45:16 vm-ubuntu-20-4 systemd[1]: Started Advanced key-value store.
===== 3.ベンチ =====
# redis-benchmark
.
.
.
143266.47 requests per second
{{tag>ベンチマーク redis}}