Popular Linux VPS Benchmark Scripts (System Performance / Health Check) - NETSEC

Latest

Learning, Sharing, Creating

Cybersecurity Memo

Friday, October 18, 2019

Popular Linux VPS Benchmark Scripts (System Performance / Health Check)

Cloud service providers often define host tiers by the allocated resources, but the differences in the underlying hardware, architecture and performance tuning can result in varying capabilities even between similar configurations. The easiest way to measure the real differences between servers is to run a set of tests, i.e. a benchmark, to create simple to read values for comparisons.


Related Posts:

VPS Performance Test All-in-One Sript

Command: 
  • wget vpstest.cn/it && bash it
  • wget git.io/vpstest && bash vpstest
  • wget -O it vpstest.cn && bash it

  1. bench.sh
  2. LemonBench
  3. superspeed
  4. superbench修复版 - yzlijie
  5. 91yuntest
  6. ZBench
  7. superbench修复 多节点版
  8. UnixBench
  9. GeekBench5
  10. kos回程测试
  11. 超内存测试
  12. sysbench测试—感谢云筏大佬的分享
  13. 路由测试

VPS Comprehensive Performance Test Script 2


wget -N --no-check-certificate https://raw.githubusercontent.com/V2RaySSR/vps/master/vpstest.sh && bash vpstest.sh


==========================================================
 本脚本支持:CentOS7+ / Debian9+ / Ubuntu16.04+
 网站:www.v2rayssr.com (已开启禁止国内访问)
 YouTube频道:波仔分享
 此脚本源于网络,波仔只是汇聚脚本功能,方便大家使用而已!
==========================================================
 简介:VPS综合性能测试脚本 (包含性能、速度、回程路由)
 首发: https://www.v2rayssr.com/vpstest.html
==========================================================
 脚本测速会大量消耗 VPS 流量,请悉知!
==========================================================
 1. VPS 三网纯测速    (各取部分节点 - 中文显示)
 2. VPS 综合性能测试  (包含测速 - 英文显示)
 3. VPS 回程路由     (四网测试 - 英文显示)
 4. VPS 快速全方位测速(包含性能、回程、速度 - 英文显示)
 0. 退出脚本

请输入数字:

Test Result from GCP's free tier on Jun 2022:

At the end of testing, it will ask if you want to check performance test result. If you answered yes, it will open port 8001 for you to access url: 

访问 http://<Your VPS Public IP>:8001/index.html 查看您的测试报告,按 Ctrl + C 退出
Serving HTTP on 0.0.0.0 port 8001 ...



Yet Another Bench Script

Github: https://github.com/masonr/yet-another-bench-script/blob/master/yabs.sh

The script might take 20-30 minutes to get all testing done, depending on VM's performance. you wll get a score for single core and multi core:
  • apt update -y && apt install -y curl wget sudo
  • curl -sL yabs.sh | bash -s -- -i -5
    • -5 means running script using Geekbench 5
    • -4 means running script using Geekbench 4
    • -9 means running Geeekbench 4 and 5
    • -6 Geekbench 6 (more memory needs)
For low memory VPS, such as 1GB ram, you might want to add at least 1GB of SWAP or use GB4 instead
  • curl -sL yabs.sh | bash -s -- -i  -4







Note: in case it will take a long time to complete the script. It had better to run it in the screen session . You can using following command to install and start screen application:
  • apt install screen
  • screen -S test
  • screen -R test
  • ctrl+A+D to detach

curl -sL yabs.sh | bash

Or

wget -qO- yabs.sh | bash
Results from OCP's Free Tier 1vCPU & 1GB RAM VM (Ubuntu 20.04)
root@instance-1:~# curl -sL yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2021-12-28                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Fri Dec 31 17:10:50 UTC 2021

Basic System Information:
---------------------------------
Processor  : AMD EPYC 7551 32-Core Processor
CPU cores  : 2 @ 1996.250 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ❌ Disabled
RAM        : 972.1 MiB
Swap       : 1024.0 MiB
Disk       : 45.1 GiB

fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ----
Read       | 6.43 MB/s     (1.6k) | 26.27 MB/s     (410)
Write      | 6.44 MB/s     (1.6k) | 26.74 MB/s     (417)
Total      | 12.87 MB/s    (3.2k) | 53.02 MB/s     (827)
           |                      |
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ----
Read       | 24.54 MB/s      (47) | 24.04 MB/s      (23)
Write      | 25.90 MB/s      (50) | 26.54 MB/s      (25)
Total      | 50.44 MB/s      (97) | 50.59 MB/s      (48)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed
                |                           |                 |
Clouvider       | London, UK (10G)          | 48.1 Mbits/sec  | 47.9 Mbits/sec
Online.net      | Paris, FR (10G)           | 47.8 Mbits/sec  | 48.3 Mbits/sec
WorldStream     | The Netherlands (10G)     | 47.4 Mbits/sec  | 47.5 Mbits/sec
WebHorizon      | Singapore (400M)          | 44.4 Mbits/sec  | 45.1 Mbits/sec
Clouvider       | NYC, NY, US (10G)         | 49.8 Mbits/sec  | 50.0 Mbits/sec
Velocity Online | Tallahassee, FL, US (10G) | 48.4 Mbits/sec  | 48.8 Mbits/sec
Clouvider       | Los Angeles, CA, US (10G) | 48.3 Mbits/sec  | 48.6 Mbits/sec
Iveloz Telecom  | Sao Paulo, BR (2G)        | 46.5 Mbits/sec  | 46.8 Mbits/sec

Geekbench 5 Benchmark Test:
---------------------------------
Test            | Value
                |
Single Core     | 321
Multi Core      | 319
Full Test       | https://browser.geekbench.com/v5/cpu/11917810

root@instance-1:~#

Another latest test report with Geekbench 6 is @ https://browser.geekbench.com/v6/cpu/1468891

You might need to add swap size 1GB before test low memory VPS:
  • wget https://raw.githubusercontent.com/51sec/swap/main/swap.sh && bash swap.sh

Test Result List (CPU Score) with Geekbench 4 for best compability:

 Geekbench 4

Oracle AMD 
1GB,1vCPU

 Azure B1S 
 1GB,1vCPU
GCP e2-Micro, 
1GB, 0.25-2 vCPU 

 

 

 

Single Core

 1726

 3254

 5750

 

 

 

Multi Core

 1479

 2981

 6286

 

 

 







Test Result Links:

Oracle AMD Free E2.1.Micro (1/8 OCPU, 1GB RAM): https://browser.geekbench.com/v4/cpu/16776633
Azure Free Tier Standard_B1S (1vCPU, 1GB RAM): https://browser.geekbench.com/v4/cpu/16776629
Google Cloud Free (e2-micro, 0.25-2vCPU, 1GB Ram):  https://browser.geekbench.com/v4/cpu/1677687


For an Azure 2vCPU 8G RAM machine, an example of Geekbench 4 test results:
Geekbench 4 Benchmark Test:
---------------------------------
Test            | Value
                |
Single Core     | 2997
Multi Core      | 5595
Full Test       | https://browser.geekbench.com/v4/cpu/16780363


UnixBench

    UnixBench is the original BYTE UNIX benchmark suite, updated and revised by many people over the years.The purpose of UnixBench is to provide a basic indicator of the performance of a Unix-like system. Hence, multiple tests are used to test various aspects of the system’s performance. These test results are then compared to the scores from a baseline system to produce an index value, which is generally easier to handle than the raw scores. The entire set of index values is then combined to make an overall index for the system.
    Some very simple graphics tests are included to measure the 2D and 3D graphics performance of the system.

    UnixBench Benchmark repository is at https://github.com/cloudharmony/unixbench

    Warning: this bench will take more than 30 minutes to run based on my own testing. 
    [root@51sec ~]# wget https://raw.githubusercontent.com/51sec/unixbench.sh/master/unixbench.sh
    [root@51sec ~]# chmod +x unixbench.sh
    [root@51sec ~]# ./unixbench.sh

    UnixBench5.1.3.tgz file : https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/byte-unixbench/UnixBench5.1.3.tgz

    Installation commands:

    # Ubuntu
    cd ~
    sudo apt-get -y install gcc php5-cli
    wget https://s3.amazonaws.com/cloudbench/software/UnixBench5.1.3.tgz
    tar zxf UnixBench5.1.3.tgz
    cd UnixBench
    make all
    ./Run

    # CentOS
    cd ~
    sudo yum -y install gcc php-cli
    wget https://s3.amazonaws.com/cloudbench/software/UnixBench5.1.3.tgz
    tar zxf UnixBench5.1.3.tgz
    cd UnixBench
    make all ./Run




    [root@instance-1test ~]# cd ~
    [root@instance-1test ~]# sudo yum -y install gcc php-cli
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirrors.serenitytek.com
     * epel: mirror.steadfastnet.com
     * extras: mirrors.cmich.edu
     * updates: centos4.zswap.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package gcc.x86_64 0:4.8.5-39.el7 will be installed
    --> Processing Dependency: cpp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
    --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-39.el7.x86_64
    --> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-39.el7.x86_64
    --> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-39.el7.x86_64
    ---> Package php-cli.x86_64 0:5.4.16-46.el7 will be installed
    --> Processing Dependency: php-common(x86-64) = 5.4.16-46.el7 for package: php-cli-5.4.16-46.el7.x86_64
    --> Running transaction check
    ---> Package cpp.x86_64 0:4.8.5-39.el7 will be installed
    ---> Package glibc-devel.x86_64 0:2.17-292.el7 will be installed
    --> Processing Dependency: glibc-headers = 2.17-292.el7 for package: glibc-devel-2.17-292.el7.x86_64
    --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-292.el7.x86_64
    ---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
    ---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
    ---> Package php-common.x86_64 0:5.4.16-46.el7 will be installed
    --> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-46.el7.x86_64
    --> Running transaction check
    ---> Package glibc-headers.x86_64 0:2.17-292.el7 will be installed
    --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-292.el7.x86_64
    --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-292.el7.x86_64
    ---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
    --> Running transaction check
    ---> Package kernel-headers.x86_64 0:3.10.0-1062.1.1.el7 will be installed
    --> Finished Dependency Resolution
    Dependencies Resolved
    
    ===================================================================================================================
     Package                      Arch                 Version                             Repository             Size
    ===================================================================================================================
    Installing:
     gcc                          x86_64               4.8.5-39.el7                        base                   16 M
     php-cli                      x86_64               5.4.16-46.el7                       base                  2.7 M
    Installing for dependencies:
     cpp                          x86_64               4.8.5-39.el7                        base                  5.9 M
     glibc-devel                  x86_64               2.17-292.el7                        base                  1.1 M
     glibc-headers                x86_64               2.17-292.el7                        base                  687 k
     kernel-headers               x86_64               3.10.0-1062.1.1.el7                 updates               8.7 M
     libmpc                       x86_64               1.0.1-3.el7                         base                   51 k
     libzip                       x86_64               0.10.1-8.el7                        base                   48 k
     mpfr                         x86_64               3.1.1-4.el7                         base                  203 k
     php-common                   x86_64               5.4.16-46.el7                       base                  565 k
    
    Transaction Summary
    ===================================================================================================================
    Install  2 Packages (+8 Dependent packages)
    
    Total download size: 36 M
    Installed size: 73 M
    Downloading packages:
    (1/10): cpp-4.8.5-39.el7.x86_64.rpm                                                         | 5.9 MB  00:00:00     
    (2/10): glibc-devel-2.17-292.el7.x86_64.rpm                                                 | 1.1 MB  00:00:00     
    (3/10): glibc-headers-2.17-292.el7.x86_64.rpm                                               | 687 kB  00:00:00     
    (4/10): libmpc-1.0.1-3.el7.x86_64.rpm                                                       |  51 kB  00:00:00     
    (5/10): gcc-4.8.5-39.el7.x86_64.rpm                                                         |  16 MB  00:00:01     
    (6/10): libzip-0.10.1-8.el7.x86_64.rpm                                                      |  48 kB  00:00:00     
    (7/10): mpfr-3.1.1-4.el7.x86_64.rpm                                                         | 203 kB  00:00:00     
    (8/10): php-common-5.4.16-46.el7.x86_64.rpm                                                 | 565 kB  00:00:00     
    (9/10): php-cli-5.4.16-46.el7.x86_64.rpm                                                    | 2.7 MB  00:00:00     
    (10/10): kernel-headers-3.10.0-1062.1.1.el7.x86_64.rpm                                      | 8.7 MB  00:00:00     
    -------------------------------------------------------------------------------------------------------------------
    Total                                                                               20 MB/s |  36 MB  00:00:01     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : mpfr-3.1.1-4.el7.x86_64                                                                        1/10 
      Installing : libmpc-1.0.1-3.el7.x86_64                                                                      2/10 
      Installing : cpp-4.8.5-39.el7.x86_64                                                                        3/10 
      Installing : kernel-headers-3.10.0-1062.1.1.el7.x86_64                                                      4/10 
      Installing : glibc-headers-2.17-292.el7.x86_64                                                              5/10 
      Installing : glibc-devel-2.17-292.el7.x86_64                                                                6/10 
      Installing : libzip-0.10.1-8.el7.x86_64                                                                     7/10 
      Installing : php-common-5.4.16-46.el7.x86_64                                                                8/10 
      Installing : php-cli-5.4.16-46.el7.x86_64                                                                   9/10 
      Installing : gcc-4.8.5-39.el7.x86_64                                                                       10/10 
      Verifying  : glibc-devel-2.17-292.el7.x86_64                                                                1/10 
      Verifying  : mpfr-3.1.1-4.el7.x86_64                                                                        2/10 
      Verifying  : php-cli-5.4.16-46.el7.x86_64                                                                   3/10 
      Verifying  : libzip-0.10.1-8.el7.x86_64                                                                     4/10 
      Verifying  : libmpc-1.0.1-3.el7.x86_64                                                                      5/10 
      Verifying  : cpp-4.8.5-39.el7.x86_64                                                                        6/10 
      Verifying  : gcc-4.8.5-39.el7.x86_64                                                                        7/10 
      Verifying  : kernel-headers-3.10.0-1062.1.1.el7.x86_64                                                      8/10 
      Verifying  : glibc-headers-2.17-292.el7.x86_64                                                              9/10 
      Verifying  : php-common-5.4.16-46.el7.x86_64                                                               10/10 
    
    Installed:
      gcc.x86_64 0:4.8.5-39.el7                             php-cli.x86_64 0:5.4.16-46.el7                            
    
    Dependency Installed:
      cpp.x86_64 0:4.8.5-39.el7                            glibc-devel.x86_64 0:2.17-292.el7                           
      glibc-headers.x86_64 0:2.17-292.el7                  kernel-headers.x86_64 0:3.10.0-1062.1.1.el7                 
      libmpc.x86_64 0:1.0.1-3.el7                          libzip.x86_64 0:0.10.1-8.el7                                
      mpfr.x86_64 0:3.1.1-4.el7                            php-common.x86_64 0:5.4.16-46.el7                           
    
    Complete!
    [root@instance-1test ~]# cd ~
    [root@instance-1test ~]# wget https://s3.amazonaws.com/cloudbench/software/UnixBench5.1.3.tgz
    
    --2019-10-01 01:20:30--  https://s3.amazonaws.com/cloudbench/software/UnixBench5.1.3.tgz
    Resolving s3.amazonaws.com (s3.amazonaws.com)... 52.217.38.246
    Connecting to s3.amazonaws.com (s3.amazonaws.com)|52.217.38.246|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 143259 (140K) [application/x-compressed]
    Saving to: ‘UnixBench5.1.3.tgz’
    
    100%[=========================================================================>] 143,259     --.-K/s   in 0.09s   
    
    2019-10-01 01:20:31 (1.45 MB/s) - ‘UnixBench5.1.3.tgz’ saved [143259/143259]
    
    [root@instance-1test ~]# tar zxf UnixBench5.1.3.tgz
    [root@instance-1test ~]# cd UnixBench
    [root@instance-1test UnixBench]# make all
    Checking distribution of files
    ./pgms  exists
    ./src  exists
    ./testdir  exists
    ./results  exists
    gcc -o ./pgms/arithoh -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Darithoh ./src/arith.c
    gcc -o ./pgms/register -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum='register int' ./src/arith.c
    gcc -o ./pgms/short -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=short ./src/arith.c
    gcc -o ./pgms/int -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=int ./src/arith.c
    gcc -o ./pgms/long -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=long ./src/arith.c
    gcc -o ./pgms/float -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=float ./src/arith.c
    gcc -o ./pgms/double -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=double ./src/arith.c
    gcc -o ./pgms/hanoi -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/hanoi.c
    gcc -o ./pgms/syscall -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/syscall.c
    ./src/syscall.c: In function ‘main’:
    ./src/syscall.c:93:21: warning: null argument where non-null required (argument 2) [-Wnonnull]
                         execl("/bin/true", (char *) 0);
                         ^
    gcc -o ./pgms/context1 -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/context1.c
    gcc -o ./pgms/pipe -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/pipe.c
    gcc -o ./pgms/spawn -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/spawn.c
    gcc -o ./pgms/execl -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/execl.c
    In file included from ./src/execl.c:34:0:
    ./src/big.c: In function ‘getwork’:
    ./src/big.c:452:11: warning: variable ‘c’ set but not used [-Wunused-but-set-variable]
         char  c;
               ^
    cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_1.c
    cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_2.c
    gcc -o ./pgms/dhry2 -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/dhry_1.o ./src/dhry_2.o
    cd ./src; rm -f dhry_1.o dhry_2.o
    cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_1.c -o dhry_1_reg.o
    cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_2.c -o dhry_2_reg.o
    gcc -o ./pgms/dhry2reg -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/dhry_1_reg.o ./src/dhry_2_reg.o
    cd ./src; rm -f dhry_1_reg.o dhry_2_reg.o
    gcc -o ./pgms/looper -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/looper.c
    gcc -o ./pgms/fstime -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/fstime.c
    gcc -o ./pgms/whetstone-double -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -DDP -DUNIX -DUNIXBENCH ./src/whets.c -lm
    
    [root@instance-1test UnixBench]# ls
    Makefile  pgms  README  results  Run  src  testdir  tmp  USAGE  WRITING_TESTS
    [root@instance-1test UnixBench]# ./Run
    make all
    make[1]: Entering directory `/root/UnixBench'
    Checking distribution of files
    ./pgms  exists
    ./src  exists
    ./testdir  exists
    ./tmp  exists
    ./results  exists
    make[1]: Leaving directory `/root/UnixBench'
    sh: 3dinfo: command not found
    
       #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
       #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
       #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
       #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
       #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
        ####   #    #  #  #    #          #####   ######  #    #   ####   #    #
    
       Version 5.1.3                      Based on the Byte Magazine Unix Benchmark
    
       Multi-CPU version                  Version 5 revisions by Ian Smith,
                                          Sunnyvale, CA, USA
       January 13, 2011                   johantheghost at yahoo period com
    
    
    1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10
    
    1 x Double-Precision Whetstone  1 2 3 4 5 6

    Following test result is coming from GCP Free Tier VM:
    [root@instance-1test UnixBench]# ./Run
    make all
    make[1]: Entering directory `/root/UnixBench'
    Checking distribution of files
    ./pgms  exists
    ./src  exists
    ./testdir  exists
    ./tmp  exists
    ./results  exists
    make[1]: Leaving directory `/root/UnixBench'
    sh: 3dinfo: command not found
    
       #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
       #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
       #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
       #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
       #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
        ####   #    #  #  #    #          #####   ######  #    #   ####   #    #
    
       Version 5.1.3                      Based on the Byte Magazine Unix Benchmark
    
       Multi-CPU version                  Version 5 revisions by Ian Smith,
                                          Sunnyvale, CA, USA
       January 13, 2011                   johantheghost at yahoo period com
    
    
    1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10
    
    1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10
    
    1 x Execl Throughput  1 2 3
    
    1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3
    
    1 x File Copy 256 bufsize 500 maxblocks  1 2 3
    
    1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3
    
    1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10
    
    1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10
    
    
    1 x Process Creation  1 2 3
    
    1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10
    
    1 x Shell Scripts (1 concurrent)  1 2 3
    
    1 x Shell Scripts (8 concurrent)  1 2 3
    
    ========================================================================
       BYTE UNIX Benchmarks (Version 5.1.3)
    
       System: instance-1test: GNU/Linux
       OS: GNU/Linux -- 3.10.0-957.27.2.el7.x86_64 -- #1 SMP Mon Jul 29 17:46:05 UTC 2019
       Machine: x86_64 (x86_64)
       Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
       CPU 0: Intel(R) Xeon(R) CPU @ 2.30GHz (4600.0 bogomips)
              Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
       01:26:04 up 25 min,  1 user,  load average: 0.04, 0.20, 0.34; runlevel 3
    
    ------------------------------------------------------------------------
    Benchmark Run: Tue Oct 01 2019 01:26:04 - 01:59:30
    1 CPU in system; running 1 parallel copy of tests
    
    Dhrystone 2 using register variables       25305481.5 lps   (10.0 s, 7 samples)
    Double-Precision Whetstone                      900.5 MWIPS (43.0 s, 7 samples)
    Execl Throughput                                758.4 lps   (29.6 s, 2 samples)
    File Copy 1024 bufsize 2000 maxblocks        309034.2 KBps  (30.0 s, 2 samples)
    File Copy 256 bufsize 500 maxblocks           42617.1 KBps  (30.1 s, 2 samples)
    File Copy 4096 bufsize 8000 maxblocks        607069.7 KBps  (30.0 s, 2 samples)
    Pipe Throughput                              295781.1 lps   (10.1 s, 7 samples)
    Pipe-based Context Switching                  65693.7 lps   (10.0 s, 7 samples)
    Process Creation                               2960.3 lps   (30.1 s, 2 samples)
    Shell Scripts (1 concurrent)                   1036.0 lpm   (60.0 s, 2 samples)
    Shell Scripts (8 concurrent)                    121.2 lpm   (60.1 s, 2 samples)
    System Call Overhead                         258104.6 lps   (10.0 s, 7 samples)
    
    System Benchmarks Index Values               BASELINE       RESULT    INDEX
    Dhrystone 2 using register variables         116700.0   25305481.5   2168.4
    Double-Precision Whetstone                       55.0        900.5    163.7
    Execl Throughput                                 43.0        758.4    176.4
    File Copy 1024 bufsize 2000 maxblocks          3960.0     309034.2    780.4
    File Copy 256 bufsize 500 maxblocks            1655.0      42617.1    257.5
    File Copy 4096 bufsize 8000 maxblocks          5800.0     607069.7   1046.7
    Pipe Throughput                               12440.0     295781.1    237.8
    Pipe-based Context Switching                   4000.0      65693.7    164.2
    Process Creation                                126.0       2960.3    234.9
    Shell Scripts (1 concurrent)                     42.4       1036.0    244.3
    Shell Scripts (8 concurrent)                      6.0        121.2    202.1
    System Call Overhead                          15000.0     258104.6    172.1
                                                                       ========
    System Benchmarks Index Score                                         316.9
    
    [root@instance-1test UnixBench]# 

    Here is another more detailed and thoughtful way to run UnixBench.sh.

    1. yum -y install wget screen #for CentOS/Redhat
    2. # apt-get -y install wget screen #for Debian/Ubuntu
    3. screen -S netsec #If network connection broken,run `screen -R netsec` connect back to test window
    4. wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
    5. #backup link: wget --no-check-certificate https://github.com/freehao123/across/raw/master/unixbench.sh
    6. chmod +x unixbench.sh
    7. ./unixbench.sh
    Test parameter explaination:
    1. # Dhrystone 2 using register variables
    2. 此项用于测试 string handling,因为没有浮点操作,所以深受软件和硬件设计(hardware and software design)、编译和链接(compiler and linker options)、代码优化(code optimazaton)、对内存的cache(cache memory)、等待状态(wait states)、整数数据类型(integer data types)的影响。
    3. # Double-Precision Whetstone
    4. 这一项测试浮点数操作的速度和效率。这一测试包括几个模块,每个模块都包括一组用于科学计算的操作。覆盖面很广的一系列 c 函数:sin,cos,sqrt,exp,log 被用于整数和浮点数的数学运算、数组访问、条件分支(conditional branch)和程序调用。此测试同时测试了整数和浮点数算术运算。
    5. # Execl Throughput
    6. 此测试考察每秒钟可以执行的 execl 系统调用的次数。 execl 系统调用是 exec 函数族的一员。它和其他一些与之相似的命令一样是 execve() 函数的前端。
    7. # File copy
    8. 测试从一个文件向另外一个文件传输数据的速率。每次测试使用不同大小的缓冲区。这一针对文件 read、write、copy 操作的测试统计规定时间(默认是 10s)内的文件 read、write、copy 操作次数。
    9. # Pipe Throughput
    10. 管道(pipe)是进程间交流的最简单方式,这里的 Pipe throughtput 指的是一秒钟内一个进程可以向一个管道写 512 字节数据然后再读回的次数。需要注意的是,pipe throughtput 在实际编程中没有对应的真实存在。
    11. # Pipe-based Context Switching
    12. 这个测试两个进程(每秒钟)通过一个管道交换一个不断增长的整数的次数。这一点很向现实编程中的一些应用,这个测试程序首先创建一个子进程,再和这个子进程进行双向的管道传输。
    13. # Process Creation
    14. 测试每秒钟一个进程可以创建子进程然后收回子进程的次数(子进程一定立即退出)。process creation 的关注点是新进程进程控制块(process control block)的创建和内存分配,即一针见血地关注内存带宽。一般说来,这个测试被用于对操作系统进程创建这一系统调用的不同实现的比较。
    15. # System Call Overhead
    16. 测试进入和离开操作系统内核的代价,即一次系统调用的代价。它利用一个反复地调用 getpid 函数的小程序达到此目的。
    17. # Shell Scripts
    18. 测试一秒钟内一个进程可以并发地开始一个 shell 脚本的 n 个拷贝的次数,n 一般取值 1248。(我在测试时取 18)。这个脚本对一个数据文件进行一系列的变形操作(transformation)。


    Test Results:
    1. Oracle Cloud Platform - free tier - CentOS7 - 508.0  (34 mins)

    2. Azure - free tier - CentOS7- 846.2 (28 mins)

    3. Google Cloud Platform - free tier - 317.1 (33 mins)

    Bench.sh - from 秋水逸冰

     bench.sh 特点:

    1、显示当前测试的各种系统信息;
    2、取自世界多处的知名数据中心的测试点,下载测试比较全面;
    3、支持 IPv6 下载测速;
    4、IO 测试三次,并显示平均值。
    使用方法:
    命令1:
    wget -qO- bench.sh | bash
    或者
    curl -Lso- bench.sh | bash
    命令2:
    wget -qO- 86.re/bench.sh | bash
    或者
    curl -so- 86.re/bench.sh | bash
    备注:
    bench.sh 既是脚本名,同时又是域名。所以不要怀疑我写错了或者你看错了。


    nench.sh (new bench.sh) script:


    https://github.com/n-st/nench provides a nice bench.sh and a single command for you to run this script on your VPS.


    Commands to run this script:

    (curl -s wget.racing/nench.sh | bash; curl -s wget.racing/nench.sh | bash) 2>&1 | tee nench.log
    
    (wget -qO- wget.racing/nench.sh | bash; wget -qO- wget.racing/nench.sh | bash) 2>&1 | tee nench.log


    Basically this benchmark script will do following tasks:
    • get system info
    • benchmark the processor and memory (both single and multi core)
    • benchmark the disk
    • benchmark networking

    SuperBench.sh - 一键测试服务器 


      from 老鬼的博客 (Oldking)
      一、特点
    1. 改进了显示的模式,基本参数添加了颜色,方面区分与查找。
    2. I/O测试,更改了原来默认的测试的内容,采用小文件,中等文件,大文件,分别测试IO性能,然后取平均值。
    速度测试替换成了 Superspeed 里面的测试,第一个默认节点是,Speedtest 默认,其他分别测试到中国电信,联通,移动,各三个不同地区的速度。
    二、使用方法
    wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
    或者
    curl -Lso- -no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

    wget -qO- git.io/superbench.sh | bash

    curl -LsO git.io/superbench.sh; chmod +x superbench.sh




    Zbench 测试脚本 from 漏水和kirito

    脚本由漏水和kirito,基于Oldking大佬 的 SuperBench,然后加入Ping以及路由测试的功能,还能生成测评报告,分享给其他人查看测评数据

    使用方法

    #中文版
    wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh

    #英文版
    wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh



    VPS Network Speed Test - superspeed.sh

    wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh && chmod +x superspeed.sh && ./superspeed.sh



    LemonBench

    LemonBench目前涵盖了如下测试:
    • 服务器基础信息 (CPU信息/内存信息/Swap信息/磁盘空间信息/网络信息等)
    • 流媒体解锁测试 (目前支持HBO Now/动画疯/B站港澳台/B站台湾限定)
    • 系统性能测试 (CPU/内存/磁盘)
    • Speedtest网速测试 (本地到最近源及国内各地域不同线路的网速)
    • 路由追踪测试 (追踪到国内和海外不同线路的路由信息)
    curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s full
    

    Or use wget:

    wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full
    

    由于测试用时较长,为防止发生SSH断线意外,推荐放在screen中运行!

    LemonBench Server Test Tookit 20200617 Intl BetaVersion (C)iLemonrain. All Rights Reserved.
    ==========================================================================================
    
     [Info] Bench Start Time: 2020-06-27 13:57:48
     [Info] Test Mode: Fast Mode
    
    
     -> System Information
    
     OS Release:            CentOS Linux 7.7.1908 (x86_64)
     CPU Model:             Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz  2.29 GHz
     CPU Cache Size:        51200 KB
     CPU Number:            1 vCPU
     Virt Type:             Microsoft Hyper-V
     Memory Usage:          643.28 MB / 908.05 MB
     Swap Usage:            [ No Swapfile/Swap Partition ]
     Boot Device:           /dev/sda2
     Disk Usage:            5.13 GB / 30.93 GB
     CPU Usage:             17.7% used, 0.0% iowait, 0.0% steal
     Load (1/5/15min):      1.74 1.01 0.46
     Uptime:                0 Days, 0 Hours, 6 Minutes, 54 Seconds
     Kernel Version:        3.10.0-1062.12.1.el7.x86_64
     Network CC Method:     cubic + pfifo_fast
    
     -> Network Infomation
    
     IPV4 - IP Address:     [US] 52.186.127.118
     IPV4 - ASN Info:       AS8075 (Microsoft Corporation, US)
     IPV4 - Region:         United States Virginia Sterling
    
     -> Media Unlock Test
    
     HBO Now:                               Yes
     Bahamut Anime:                         No
     Abema.TV:                              No
     Princess Connect Re:Dive Japan:        Yes
     BBC:                                   No
     BiliBili China Mainland Only:          No
     BiliBili Hongkong/Macau/Taiwan:        No
     Bilibili Taiwan Only:                  No
    
     -> CPU Performance Test (Fast Mode, 1-Pass @ 5sec)
    
     1 Thread Test:                 903 Scores
    
     -> Memory Performance Test (Fast Mode, 1-Pass @ 5sec)
    
     1 Thread - Read Test :         16978.82 MB/s
     1 Thread - Write Test:         12548.34 MB/s
    
     -> Disk Speed Test (4K Block/1M Block, Direct Mode)
    
     Test Name              Write Speed                             Read Speed
     100MB-4K Block         2.4 MB/s (597 IOPS, 42.86s)             2.4 MB/s (591 IOPS, 43.25s)
     1GB-1M Block           23.5 MB/s (22 IOPS, 44.61s)             27.4 MB/s (26 IOPS, 38.29s)
    
     -> Speedtest.net Network Speed Test
    
     Node Name                      Upload Speed    Download Speed  Ping Latency
     Speedtest Default              109.89 MB/s     271.96 MB/s     1.22 ms
     China, Jilin CU                0.17 MB/s       123.74 MB/s     323.80 ms
     China, Nanning CM              Fail: {"error":"Host resolve failed: Try again"}
     China, Nanjing CT              0.05 MB/s       145.41 MB/s     214.71 ms
    
     -> Traceroute Test (IPV4)
    
    Traceroute to China, Beijing CU (TCP Mode, Max 30 Hop)
    ============================================================
    traceroute to 123.125.99.1 (123.125.99.1), 30 hops max, 60 byte packets
     1  *
     2  *
     3  *
    
    
    22  *
    23  *
    24  *
    25  123.125.99.1  293.83 ms  AS4808  China Beijing ChinaUnicom
    
    Traceroute to China, Beijing CT (TCP Mode, Max 30 Hop)
    ============================================================
    traceroute to 180.149.128.9 (180.149.128.9), 30 hops max, 60 byte packets
     1  *
     2  *
    
    15  *
    16  *
    17  *
    18  *
    19  180.149.128.9  236.36 ms  AS23724  China Beijing ChinaTelecom
    
    
    ==========================================================================================
    
     [Info] Bench Finish Time: 2020-06-27 14:05:10
     [Info] Time Elapsed: 442 seconds
    
    [Info] Please wait, collecting results ...
    [Info] Generating Report ...
    [Info] Saving local Report ...
    [Info] Generating Report URL ...
    [Success] Report Generate Success!Please save the follwing link:
    [Info] Report URL: https://paste.ubuntu.com/p/b5kkbSCSsW/
    [root@centos1docker ~]#
    



    Luxas Benchmark Docker

    Github: https://github.com/luxas/benchmark
    Note: The reference point is 100 points and a Raspberry Pi 1 Model B should perform 100 in every test.So, this way you may roughly measure how fast other computers or ARM boards are compared to a RPi 1. For the moment it benchmarks only single-core performance.
    $ docker run -it luxas/benchmark-arm
    $ docker run -it luxas/benchmark-amd64

    A results file will be in /bench/results.json inside the container.
    Example output for Raspberry Pi 2B:
    Results are in results.json
    {
            "overall": "293",
            "cpu": "225",
            "ram": "437",
            "real": "219",
            "subPerf": {
                    "floatingPoint_whetstone": "194",
                    "integerPerf_dhrystone": "172",
                    "linearAlgebraSinglePoint_linpack": "271",
                    "linearAlgebraDoublePoint_linpack": "278",
                    "kernelDoublePrecision_liverloops": "211",
                    "L1CacheMFLOPS_l1flops": "197",
                    "L2CacheMFLOPS_l2flops": "475",
                    "RAMCacheSpeed_ramflops": "550",
                    "RAMMIPS_rammips": "748",
                    "wordReadingBusSpeed_busspeed": "217",
                    "compileTimeAllBenchmarks": "219"
            },
            "rawData": {
                    "floatingPoint_whetstone": "438",
                    "integerPerf_dhrystone": "1505",
                    "linearAlgebraSinglePoint_linpack": "155",
                    "linearAlgebraDoublePoint_linpack": "117",
                    "kernelDoublePrecision_liverloops": "131",
                    "L1CacheMFLOPS_l1flops": "182",
                    "L2CacheMFLOPS_l2flops": "171",
                    "RAMCacheSpeed_ramflops": "99",
                    "RAMMIPS_rammips": "1018",
                    "wordReadingBusSpeed_busspeed": "1493",
                    "compileTimeAllBenchmarks": "57"
            }
    }
    




    BestTrace


    For Linux
    yum install wget zip -y
    wget https://cdn.ipip.net/17mon/besttrace4linux.zip


    unzip besttrace*.zip
    chmod +x besttrace
    ./besttrace 测试节点IP

    For Windows:

    Download link: https://cdn.ipip.net/17mon/besttrace.exe



    Other Popular Scripts


    #一键开启bbr脚本
    wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
    
    #bbr 原版/魔改/plus+锐速 四合一脚本 使用说明:https://zkx.win/61.html
    wget --no-check-certificate https://github.com/cx9208/Linux-NetSpeed/raw/master/tcp.sh && chmod +x tcp.sh && ./tcp.sh
    
    #superbench 检测脚本
    wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
    
    #bench 检测脚本
    wget -qO- bench.sh | bash
    
    #zbench(中文)检测脚本
    wget --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
    
    #zbench(英文)检测脚本
    wget --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh
    
    #LemonBench 综合检测脚本(检测耗时较长,建议screen)
    wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full
    
    #A 独服硬盘通电时间检测脚本
    wget -q https://github.com/Aniverse/A/raw/i/a && bash a
    
    #unixbench 性能跑分脚本
    wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh && chmod +x unixbench.sh && ./unixbench.sh

    综合工具箱(强烈推荐,集成了很多脚本)


    wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh





    杜甫测试


    wget -q https://github.com/Aniverse/A/raw/i/a && bash a


    Azure B1S Size Instance Testing Result:

    
                       This is the choice of Steins;Gate
    
      CPU 型号              Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz
      CPU 核心              合计 1 核心,1 线程
      CPU 状态              当前主频 2095.108 MHz
      内存大小              844 MB (369 MB 已用)
      交换分区              2047 MB (899 MB 已用)
    
      总硬盘大小            共 7 块硬盘,合计 66.2 GB
    
      服务器时间            2023-10-29 08:55:32
      运行时间              34 days 6 hour 59 min
      系统负载              0.00, 0.07, 0.09
      虚拟化技术            Microsoft Virtual Machine
    
      IPv4 地址             4.204.xxx.xxx
      运营商                AS8075 Microsoft Corporation
      地理位置              CA, Ontario, Toronto
    
      操作系统              Ubuntu 20.04.6 focal (x86_64)
      系统内核              5.15.0-1045-azure
      TCP 加速              cubic
    
      当前脚本版本          1.4.1.1
    
      顺序写入 (1st)        53 MB/s
      顺序写入 (2nd)        52 MB/s
      顺序写入 (3rd)        51 MB/s
      顺序写入 (4th)        50 MB/s
      顺序写入 (5th)        52 MB/s
      顺序写入 (avg)        51.8 MB/s
    
    root@linux-nc1:~#
    
    





    OpenAI 状态查看

    bash <(curl -Ls https://cdn.jsdelivr.net/gh/missuo/OpenAI-Checker/openai.sh)











    流媒体解锁测试脚本

    bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)














    三网回程延迟测试脚本

    wget -qO- git.io/besttrace | bash
















    三网回程测试脚本

    curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash


















    三网测速脚本

    bash <(curl -Lso- https://git.io/superspeed_uxh)














    测速命令

    wget -qO- bench.sh | bash



























    References






    No comments:

    Post a Comment