内存频率对于性能的影响(2400/3000)
测试机器配置:
CPU model : AMD Ryzen 9 3900X 12-Core Processor
Number of cores : 8
CPU frequency : 3792.878 MHz
Total size of Disk : 1112.8 GB (232.3 GB Used)
MiB Mem : 16012.9 total, 13170.2 free, 1234.7 used, 1607.9 buff/cache
MiB Swap : 2048.0 total, 2048.0 free, 0.0 used. 14394.3 avail Mem
System uptime : 0 days, 0 hour 6 min
Load average : 0.06, 0.23, 0.15
OS : Ubuntu 20.04 LTS
Arch : x86_64 (64 Bit)
Kernel : 5.4.0-37-generic
----------------------------------------------------------------------
I/O speed(1st run) : 295 MB/s
I/O speed(2nd run) : 730 MB/s
I/O speed(3rd run) : 803 MB/s
Average I/O speed : 609.3 MB/s
----------------------------------------------------------------------
redis benchmark 结果
**2400 **
PING_INLINE: 187617.27 requests per second
PING_BULK: 162337.66 requests per second
SET: 199600.80 requests per second
GET: 166944.92 requests per second
INCR: 181818.17 requests per second
LPUSH: 186915.88 requests per second
RPUSH: 190476.20 requests per second
LPOP: 199203.20 requests per second
RPOP: 195694.72 requests per second
SADD: 171526.58 requests per second
HSET: 194174.77 requests per second
SPOP: 167785.23 requests per second
LPUSH (needed to benchmark LRANGE): 183486.23 requests per second
LRANGE_100 (first 100 elements): 92336.11 requests per second
LRANGE_300 (first 300 elements): 45187.53 requests per second
LRANGE_500 (first 450 elements): 32010.24 requests per second
LRANGE_600 (first 600 elements): 25680.53 requests per second
MSET (10 keys): 115740.73 requests per second
3000
PING_INLINE: 211864.41 requests per second
PING_BULK: 210084.03 requests per second
SET: 204081.62 requests per second
GET: 210084.03 requests per second
INCR: 235294.11 requests per second
LPUSH: 228310.50 requests per second
RPUSH: 241545.89 requests per second
LPOP: 245700.25 requests per second
RPOP: 246913.58 requests per second
SADD: 207468.88 requests per second
HSET: 189035.92 requests per second
SPOP: 176991.16 requests per second
LPUSH (needed to benchmark LRANGE): 225225.22 requests per second
LRANGE_100 (first 100 elements): 95419.85 requests per second
LRANGE_300 (first 300 elements): 47505.94 requests per second
LRANGE_500 (first 450 elements): 33311.12 requests per second
LRANGE_600 (first 600 elements): 26560.42 requests per second
MSET (10 keys): 125156.45 requests per second