Test script bench.sh (for network and IO tests of various Linux distributions)

 After several versions of iterations, the one-key test script bench.sh is almost applicable to the network and IO tests of various Linux distributions.

And display the test results in a more beautiful way.

Summarize the features of bench.sh:

1. Display various system information;
2. Test points taken from Speedtest data centers in many parts of the world, and the network test is relatively comprehensive;
3. Support IPv6 download speed measurement;
4. IO test (write 1GB data sequentially) three times, and display the average value.

Combined with the  unixbench.sh  script test, you can fully test the performance of the VPS.

How to use:
Command 1:

wget -qO-bench.sh | bash

or

curl -Lso-bench.sh | bash

Command 2:

wget -qO-86.re /bench.sh | bash _ _

or

curl -so-86.re /bench.sh | bash _ _

Note:
bench.sh is both the script name and the domain name. So don't suspect that I wrote it wrong or you read it wrong.

Download address:
https://github.com/teddysun/across/blob/master/bench.sh

update log

Updated on February 22, 2022:
1. Added the judgment of whether the CPU supports AES-NI and VM-x/AMD-V;
2. Improved the algorithm for calculating hard disk space;
3. Improved the algorithm for calculating RAM and Swap;
4. Improve the time stamp display method and add time zone display;

Picture [1] - test script bench.sh (applicable to network and IO tests of various Linux distributions) - Rich Miscellaneous


Updated on January 1, 2022:
1. Optimized the script logic and beautified the display;
2. Upgraded the version of speedtest-cli to 1.1.1;
3. Supported arm64 (aarch64) and armv7l (armhf) architectures, as shown in the figure below;
・arm64 (aarch64)

Picture [2] - test script bench.sh (suitable for network and IO tests of various Linux distributions) - Rich Miscellaneous


・armv7l (armhf)

Picture [3] - test script bench.sh (suitable for network and IO tests of various Linux distributions) - Rich Miscellaneous


4. Optimize the speed test server list provided by Speedtest. Among them, the node information of Shanghai, Nanjing and Guangzhou in China is as follows

24447 ) China Unicom 5G ( ShangHai, China )< font >< /font >
26352 ) China Telecom JiangSu 5G ( Nanjing, China )< font >< /font >
27594 ) ChinaTelecom 5G ( Guangzhou, China )

・x86_64

Picture [4] - test script bench.sh (suitable for network and IO tests of various Linux distributions) - Rich Miscellaneous

Updated on July 29, 2020:
1. Modification: Speedtest is provided by Speedtest, which distinguishes between upload and download, which is more practical;
2. Added: TCP Congestion Control; virtualization method; IP information, etc.

The figure below shows my  Vultr  evaluation data:

Picture [5] - test script bench.sh (applicable to network and IO tests of various Linux distributions) - Rich Miscellaneous

Update on January 07, 2018:
Modification: The color of the displayed information is divided into categories to make it easier to distinguish.

The figure below shows the evaluation data of my KS3C 100M dedicated server:

Picture [6] - test script bench.sh (suitable for network and IO tests of various Linux distributions) - Rich Miscellaneous

Updated on November 24, 2016:
Added: display hard disk information; advance the location of the IO speed test, and put the network download speed test at the end.

As follows:

Picture [7] - test script bench.sh (suitable for network and IO tests of various Linux distributions) - Rich Miscellaneous

Put some test pictures at the end.

Bandwagon Host Los Angel

Picture [8] - test script bench.sh (suitable for network and IO testing of various Linux distributions) - Rich Miscellaneous

DigitalOcean Singapore

Picture [9] - test script bench.sh (suitable for network and IO testing of various Linux distributions) - Rich Miscellaneous

Ramnode Seattle

Picture [10] - test script bench.sh (applicable to network and IO tests of various Linux distributions) - Rich Miscellaneous

Xvmlabs Los Angel

Picture [11] - test script bench.sh (suitable for network and IO tests of various Linux distributions) - Rich Miscellaneous

Reprinted: Qiushui Yibing  »  One-click test script bench.sh