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:
or
Command 2:
or
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](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-9.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
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](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-10.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
・armv7l (armhf)
![Picture [3] - test script bench.sh (suitable for network and IO tests of various Linux distributions) - Rich Miscellaneous](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-11.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
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
・x86_64
![Picture [4] - test script bench.sh (suitable for network and IO tests of various Linux distributions) - Rich Miscellaneous](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-12.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
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](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-13.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
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](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-14.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
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](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-15.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
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](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-16.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
DigitalOcean Singapore
![Picture [9] - test script bench.sh (suitable for network and IO testing of various Linux distributions) - Rich Miscellaneous](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-17.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
Ramnode Seattle
![Picture [10] - test script bench.sh (applicable to network and IO tests of various Linux distributions) - Rich Miscellaneous](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-18.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
Xvmlabs Los Angel
![Picture [11] - test script bench.sh (suitable for network and IO tests of various Linux distributions) - Rich Miscellaneous](https://cdn.bifiv.com/wp-content/uploads/2023/01/image-19.png?imageMogr2/format/webp/interlace/1/quality/100|watermark/1/image/aHR0cDovL3dhdGVybWFyay1jZC0xMjUyMTA2MjExLnBpY2NkLm15cWNsb3VkLmNvbS9ydmljaC0xMjUyNDQ0NTMzLzE1ODk5MDM0NjIucG5n/gravity/southeast/dx/10/dy/10)
Reprinted: Qiushui Yibing » One-click test script bench.sh