Linux服务器一键测试CPU/硬盘/
<p data-first-child="" data-pid="HC_L-PTl" style="margin-top: 0px; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);"><span style="font-weight: 600; font-synthesis: style;">服务器性能</span>怎么样,自然就是跑分和测试啦!<span style="font-weight: 600; font-synthesis: style;">服务器带宽</span>好不好跑跑上行下行带宽就知道怎么样了。由于单项目来测试比较耗时间,特别是测试<span style="font-weight: 600; font-synthesis: style;">服务器</span>带宽速度的时候单一测试节点很费时间,并且需要记住多个命令,估计这样的长时间值守没有人原因了,因此网络很多大佬制作了适用于Linux系统服务器测试速度、性能的脚本,都只需一个简单命令即可完成测试。主机测评及技术分享之前也在一些文章当中整理过比较好用且全面的Linux服务器性能速度测试脚本,有兴趣的可在下面文章当中逐一测试一番。下面文章当中几乎汇聚了全网热门的<span style="font-weight: 600; font-synthesis: style;">Linux服务器</span>测试脚本:</p><p><br/></p><figure data-size="normal" style="margin: 1.4em 0px; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);"></figure><p><br/></p><h3 style="margin: calc(1.90909em) 0px calc(1.27273em); font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; font-size: 1.1em; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; clear: left; font-synthesis: style; color: rgb(18, 18, 18); white-space: normal; background-color: rgb(255, 255, 255);">一、yabs.sh服务器性能测试脚本命令</h3><p data-pid="brdTf_Ag" style="margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">这里<span style="font-weight: 600; font-synthesis: style;">主机测评分享</span>再为大家分享一个比较全面测试Linux系统服务器CPU性能及硬盘性能的脚本,有兴趣的可以试试,特别是对CPU性能测试比较全面。此脚本支持在CentOS 6&7+、Debian 8+、Fedora 30、Ubuntu 16.04+系统中使用,并且无需安装其他依赖程序。测试命令如下:</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background-color: rgb(246, 246, 246); border-radius: 4px;">curl -sL yabs.sh | bash</pre><p data-pid="v8werO09" style="margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">yabs.sh脚本比较全面的测试下面CPU、基本信息、硬盘、带宽等内容,如果需要排除一些不想测试的项目可以使用下面命令。</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background-color: rgb(246, 246, 246); border-radius: 4px;">curl -sL yabs.sh | bash -s -- -fg</pre><p data-pid="H6VGNjUg" style="margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">可以将选项组合在一起以跳过多个测试,即-fg跳过磁盘和系统性能测试(实际上仅测试网络性能)</p><ul style="padding: 0px; margin-top: 1.4em; margin-bottom: 1.4em; display: table; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);" class=" list-paddingleft-2"><li><p>-f/-d此选项禁用fio(磁盘性能)测试</p></li><li><p>-i 此选项禁用iperf(网络性能)测试</p></li><li><p>-g 此选项禁用Geekbench(系统性能)测试</p></li><li><p>-h 此选项显示帮助消息以及用法,检测到的标志和本地软件包(fio / iperf)状态</p></li><li><p>-r 此选项减少了iperf位置(<a href="https://link.zhihu.com/?target=http%3A//Online.net/Clouvider" class=" external" target="_blank" rel="nofollow noreferrer" data-za-detail-view-id="1043" style="text-decoration-line: none; cursor: pointer; border-bottom: 1px solid rgb(128, 128, 128);"><span class="invisible" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 0px; line-height: 0; font-family: a; color: transparent; text-shadow: none; background-color: transparent;">http://</span><span class="visible">Online.net/Clouvider</span><span class="invisible" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 0px; line-height: 0; font-family: a; color: transparent; text-shadow: none; background-color: transparent;"></span></a> LON + NYC)的数量,以减少带宽使用量</p></li><li><p>-4 此选项将覆盖Geekbench 5性能测试,并运行Geekbench 4测试</p></li><li><p>-9 除了Geekbench 5测试外,此选项还运行Geekbench 4测试</p></li></ul><h3 style="margin: calc(1.90909em) 0px calc(1.27273em); font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; font-size: 1.1em; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; clear: left; font-synthesis: style; color: rgb(18, 18, 18); white-space: normal; background-color: rgb(255, 255, 255);">二、yabs.sh服务器性能测试结果展示</h3><p data-pid="vme137V0" style="margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">在下面测试结果当中,我们即可查看到详细的CPU性能测试信息。</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background-color: rgb(246, 246, 246); border-radius: 4px;"># ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## Yet-Another-Bench-Script #
# v2021-10-2 #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
2021年 10月 2日 星期六 22:18:21 CST
Basic System Information:
---------------------------------
Processor : Intel Xeon E3-12xx v2 (Ivy Bridge, IBRS)
CPU cores : 2 @ 2599.998 MHz
AES-NI : ✔ Enabled
VM-x/AMD-V : ❌ Disabled
RAM : 1.9 GiB
Swap : 2.0 GiB
Disk : 18.0 GiB
fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k (IOPS) | 64k (IOPS)
------ | --- ---- | ---- ----
Read | 4.64 MB/s (1.1k) | 70.78 MB/s (1.1k)
Write | 4.67 MB/s (1.1k) | 71.15 MB/s (1.1k)
Total | 9.31 MB/s (2.3k) | 141.94 MB/s (2.2k)
| |
Block Size | 512k (IOPS) | 1m (IOPS)
------ | --- ---- | ---- ----
Read | 172.45 MB/s (336) | 186.14 MB/s (181)
Write | 181.61 MB/s (354) | 198.54 MB/s (193)
Total | 354.06 MB/s (690) | 384.69 MB/s (374)
iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider | Location (Link) | Send Speed | Recv Speed
| | |
Clouvider | London, UK (10G) | 51.8 Mbits/sec | 45.4 Mbits/sec
Online.net | Paris, FR (10G) | 50.2 Mbits/sec | 43.1 Mbits/sec
WorldStream | The Netherlands (10G) | busy | 46.4 Mbits/sec
Biznet | Jakarta, Indonesia (1G) | 54.5 Mbits/sec | 48.5 Mbits/sec
Clouvider | NYC, NY, US (10G) | 52.5 Mbits/sec | 46.0 Mbits/sec
Velocity Online | Tallahassee, FL, US (10G) | 50.8 Mbits/sec | 45.9 Mbits/sec
Clouvider | Los Angeles, CA, US (10G) | 53.4 Mbits/sec | 46.9 Mbits/sec
Iveloz Telecom | Sao Paulo, BR (2G) | busy | busy
Geekbench 5 Benchmark Test:
---------------------------------
Test | Value
|
Single Core | 647</pre><p><br/></p><link rel="stylesheet" href="//www.zhidianyun.cn/source/plugin/wcn_editor/public/wcn_editor_fit.css?v134_TZ8" id="wcn_editor_css"/>
页:
[1]