u@ubs:~$  curl -Lso- bench.sh | bash
grep: /proc/1/environ: Permission denied
-------------------- A Bench.sh Script By Teddysun -------------------
 Version            : v2022-06-01
 Usage              : wget -qO- bench.sh | bash
----------------------------------------------------------------------
 CPU Model          : Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
 CPU Cores          : 4 @ 2304.007 MHz
 CPU Cache          : 6144 KB
 AES-NI             : Enabled
 VM-x/AMD-V         : Disabled
 Total Disk         : 124.4 GB (17.9 GB Used)
 Total Mem          : 7.8 GB (1.7 GB Used)
 Total Swap         : 4.0 GB (12.4 MB Used)
 System uptime      : 0 days, 8 hour 2 min
 Load average       : 0.09, 1.45, 1.90
 OS                 : Ubuntu 20.04.5 LTS
 Arch               : x86_64 (64 Bit)
 Kernel             : 5.4.0-131-generic
 TCP CC             : cubic
 Virtualization     : Dedicated
 Organization       : AS24400 Shanghai Mobile Communications Co.,Ltd.
 Location           : Shanghai / CN
 Region             : Shanghai
----------------------------------------------------------------------
 I/O Speed(1st run) : 1.8 GB/s
 I/O Speed(2nd run) : 1.8 GB/s
 I/O Speed(3rd run) : 1.7 GB/s
 I/O Speed(average) : 1809.1 MB/s

# redis-benchmark -q
PING_INLINE: 109289.62 requests per second
PING_BULK: 107181.13 requests per second
SET: 109051.26 requests per second
GET: 108225.10 requests per second
INCR: 109529.02 requests per second
LPUSH: 111607.14 requests per second
RPUSH: 110497.24 requests per second
LPOP: 110741.97 requests per second
RPOP: 109649.12 requests per second
SADD: 110864.74 requests per second
HSET: 114416.48 requests per second
SPOP: 109529.02 requests per second
LPUSH (needed to benchmark LRANGE): 111482.72 requests per second
LRANGE_100 (first 100 elements): 55679.29 requests per second
LRANGE_300 (first 300 elements): 25913.45 requests per second
LRANGE_500 (first 450 elements): 19033.12 requests per second
LRANGE_600 (first 600 elements): 14869.89 requests per second
MSET (10 keys): 88495.58 requests per second

原文地址:http://www.cnblogs.com/svji/p/16887705.html

1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长! 2. 分享目的仅供大家学习和交流,请务用于商业用途! 3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入! 4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解! 5. 如有链接无法下载、失效或广告,请联系管理员处理! 6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需! 7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员! 8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载 声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性