Uncategorized

在本站点中用作基准的unixbench是什么?

本文件目的

该站点正在使用unixbench计算每个VPS的性能。
我将在这里解释unixbench的含义及其重要性。

unixxbench的数量是什么意思?

该数字基于以下假设:对于乔治机器(SPARCstation 20/61 [CPU:superSPARC + 60MHz / RAM:128MB]),我们将其性能计为“ 10”。

如果您通过unixbench获得100,则意味着与George相比,您可以从该机器获得10倍的性能。

因此,unixbench的数量越多越好。

即使获得相同的CPU,性能也可能如此不同。
在某些情况下,即使CPU数量相同,性能结果也相差10倍以上。

因此,对于您而言重要的是要根据unixbench检查成本和实际性能,并选择具有更好性价比的VPS。

unixbench的数量由以下元素组成。
硬件和操作系统会影响结果。

Dhrystone 由Reinhold Weicker在1984年开发。此基准用于测量和比较计算机的性能。 该测试着重于字符串处理,因为没有浮点运算。 它在很大程度上受到硬件和软件设计,编译器和链接器选项,代码优化,高速缓存存储器,等待状态以及整数数据类型的影响。
Whetstone 此测试衡量浮点运算的速度和效率。 该测试包含几个模块,这些模块旨在代表科学应用中通常执行的多种操作。 使用了各种各样的C函数,包括sin,cos,sqrt,exp和log以及整数和浮点数学运算,数组访问,条件分支和过程调用。 该测试同时测量整数和浮点运算。
execl Throughput 此测试测量每秒可以执行的execl调用的数量。 execl是exec函数家族的一部分,该函数家族将新的过程映像替换为当前过程映像。 它和许多其他类似的命令是函数execve()的前端。
File Copy 这可以衡量使用各种缓冲区大小将数据从一个文件传输到另一个文件的速率。 文件读取,写入和复制测试捕获在指定时间(默认值为10秒)内可以写入,读取和复制的字符数。
Pipe Throughput pipe是进程之间通信的最简单形式。 pipe吞吐量是进程可以向pipe写入512字节并回读它们的次数(每秒)。 pipe吞吐量测试在实际编程中没有真正的对应物。
Pipe-based Context Switching 此测试测量两个进程可以通过pipe交换递增整数的次数。 基于pipe的上下文切换测试更像是实际应用程序。 测试程序产生一个子进程,通过该子进程进行双向pipe对话。
Process Creation 此测试衡量进程可以分叉并收获立即退出的孩子的次数。 进程创建是指实际上为新进程创建进程控制块和内存分配,因此这直接适用于内存带宽。 通常,此基准将用于比较操作系统进程创建调用的各种实现。
Shell Scripts Shell Sripts测试测量了进程每分钟可以启动并获得一组,两个,四个和八个并发的Shell Sripts的副本的次数,其中Shell Sripts对数据文件进行了一系列转换。
System Call Overhead 这估计了进入和离开操作系统内核的成本,即执行系统调用的开销。 它包含一个简单的程序,该程序反复调用getpid(返回调用进程的进程ID)系统调用。 执行此类调用的时间用于估算进入和退出内核的成本。
Graphical Tests 提供2D和3D图形测试; 目前,由ubgears程序组成的3D套件非常有限。 这些测试旨在为系统的2D和3D图形性能提供一个非常粗糙的概念。 当然,请记住,报告的性能不仅取决于硬件,还取决于系统是否具有合适的驱动程序

uinxbench的示例

这是unixbench输出的示例。

有一部分用于1个CPU,一部分用于多个CPU。

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   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

------------------------------------------------------------------------------
   Use directories for:
      * File I/O tests (named fs***) = /root/bench/byte-unixbench/UnixBench/tmp
      * Results                      = /root/bench/byte-unixbench/UnixBench/results
------------------------------------------------------------------------------


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

4 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

4 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

4 x Execl Throughput  1 2 3

4 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

4 x File Copy 256 bufsize 500 maxblocks  1 2 3

4 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

4 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

4 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

4 x Process Creation  1 2 3

4 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

4 x Shell Scripts (1 concurrent)  1 2 3

4 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: centos-g-4vcpu-16gb-nyc1-01: GNU/Linux
   OS: GNU/Linux -- 3.10.0-862.2.3.el7.x86_64 -- #1 SMP Wed May 9 18:05:47 UTC 2018
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz (5387.3 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz (5387.3 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 2: Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz (5387.3 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 3: Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz (5387.3 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   01:59:41 up 3 min,  1 user,  load average: 0.21, 0.18, 0.08; runlevel 2019-02-27

------------------------------------------------------------------------
Benchmark Run: 水  2月 27 2019 01:59:41 - 02:28:29
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       42648481.9 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3657.7 MWIPS (14.4 s, 7 samples)
Execl Throughput                                928.4 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        504053.2 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          128658.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1724224.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                              629775.4 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 146018.4 lps   (10.0 s, 7 samples)
Process Creation                               5311.6 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3139.2 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   2442.2 lpm   (60.0 s, 2 samples)
System Call Overhead                         484943.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   42648481.9   3654.5
Double-Precision Whetstone                       55.0       3657.7    665.0
Execl Throughput                                 43.0        928.4    215.9
File Copy 1024 bufsize 2000 maxblocks          3960.0     504053.2   1272.9
File Copy 256 bufsize 500 maxblocks            1655.0     128658.5    777.4
File Copy 4096 bufsize 8000 maxblocks          5800.0    1724224.1   2972.8
Pipe Throughput                               12440.0     629775.4    506.3
Pipe-based Context Switching                   4000.0     146018.4    365.0
Process Creation                                126.0       5311.6    421.6
Shell Scripts (1 concurrent)                     42.4       3139.2    740.4
Shell Scripts (8 concurrent)                      6.0       2442.2   4070.3
System Call Overhead                          15000.0     484943.0    323.3
                                                                   ========
System Benchmarks Index Score                                         836.4

------------------------------------------------------------------------
Benchmark Run: 水  2月 27 2019 02:28:29 - 02:57:17
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables      170132750.7 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    14686.1 MWIPS (14.3 s, 7 samples)
Execl Throughput                              11938.7 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1014899.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          270994.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       3407898.7 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2514818.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 610702.4 lps   (10.0 s, 7 samples)
Process Creation                              35845.6 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  19810.5 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   2789.8 lpm   (60.0 s, 2 samples)
System Call Overhead                        1810556.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  170132750.7  14578.6
Double-Precision Whetstone                       55.0      14686.1   2670.2
Execl Throughput                                 43.0      11938.7   2776.5
File Copy 1024 bufsize 2000 maxblocks          3960.0    1014899.3   2562.9
File Copy 256 bufsize 500 maxblocks            1655.0     270994.9   1637.4
File Copy 4096 bufsize 8000 maxblocks          5800.0    3407898.7   5875.7
Pipe Throughput                               12440.0    2514818.0   2021.6
Pipe-based Context Switching                   4000.0     610702.4   1526.8
Process Creation                                126.0      35845.6   2844.9
Shell Scripts (1 concurrent)                     42.4      19810.5   4672.3
Shell Scripts (8 concurrent)                      6.0       2789.8   4649.7
System Call Overhead                          15000.0    1810556.8   1207.0
                                                                   ========
System Benchmarks Index Score                                        3036.2