fio主要在于测试IO性能,在Linux系统下使用比较方便;iperf3是一个网络速度测试,支持IPv4与IPv6,支持TCP、UDP、SCTP传输协议等。在国内VPS主机测试中含这类的较少,现在小七博客收集整理到应用于linux系统一键测试fio与iperf3的脚本,有需求的可以关注一下哦。
一键测试命令代码:
curl -sL yabs.sh | bash -s -- -r
下面是样式:
Basic System Information: --------------------------------- Processor : Intel(R) Xeon(R) CPU E5-2667 v2 @ 3.30GHz CPU cores : 2 @ 3299.998 MHz AES-NI : ✔ Enabled VM-x/AMD-V : ❌ Disabled RAM : 1.8 GiB Swap : 1024.0 MiB Disk : 48.2 GiB fio Disk Speed Tests (Mixed R/W 50/50): --------------------------------- Block Size | 4k (IOPS) | 64k (IOPS) ------ | --- ---- | ---- ---- Read | 48.88 MB/s (12.2k) | 406.77 MB/s (6.3k) Write | 48.96 MB/s (12.2k) | 408.91 MB/s (6.3k) Total | 97.85 MB/s (24.4k) | 815.69 MB/s (12.7k) | | Block Size | 512k (IOPS) | 1m (IOPS) ------ | --- ---- | ---- ---- Read | 471.68 MB/s (921) | 463.16 MB/s (452) Write | 496.74 MB/s (970) | 494.00 MB/s (482) Total | 968.43 MB/s (1.8k) | 957.16 MB/s (934) iperf3 Network Speed Tests (IPv4): --------------------------------- Provider | Location (Link) | Send Speed | Recv Speed | | | Clouvider | London, UK (10G) | 738 Mbits/sec | 534 Mbits/sec Online.net | Paris, FR (10G) | 870 Mbits/sec | 399 Mbits/sec WorldStream | The Netherlands (10G) | 861 Mbits/sec | 450 Mbits/sec Biznet | Jakarta, Indonesia (1G) | 529 Mbits/sec | 123 Mbits/sec Clouvider | NYC, NY, US (10G) | 923 Mbits/sec | 666 Mbits/sec Velocity Online | Tallahassee, FL, US (10G) | 926 Mbits/sec | 896 Mbits/sec Clouvider | Los Angeles, CA, US (10G) | 928 Mbits/sec | 868 Mbits/sec Iveloz Telecom | Sao Paulo, BR (2G) | 847 Mbits/sec | 315 Mbits/sec Geekbench 5 Benchmark Test: --------------------------------- Test | Value | Single Core | 687 Multi Core | 1378
说明:如果没有安装iperf3,可以通过执行yum install iperf3即可安装!