由于这两天在搭建饥荒服务器,于是顺便(被迫)把好几家VPS服务商的云虚拟主机进行了性能测试。不过后续证明,饥荒游戏运行卡不卡还是取决于服务器带宽的稳定与否,与CPU理论性能没有太大关联。如果大家聚在一起玩,建议直接在局域网内搭建。

性能测试使用BYTE UNIX Benchmarks测试,数据仅供参考。

测试包含以下VPS厂商:

都是便宜服务器(可能随时都会跑路的那种),因为没预算

跑分数据解读

# 测试聚焦在字符串处理,没有浮点运算操作。这个测试用于测试链接器编译、代码优化、内存缓存、等待状态、整数数据类型等,硬件和软件设计都会非常大的影响测试结果。
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

# 此测试考察每秒钟可以执行的 execl 系统调用的次数
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
# 一秒钟内一个进程可以向一个管道写 512 字节数据然后再读回的次数    
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
# 测试一秒钟内一个进程可以并发地开始一个shell 脚本的 n 个拷贝的次数,n 一般取值1,2,4,8.
1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

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

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

2 x Execl Throughput  1 2 3

2 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

2 x File Copy 256 bufsize 500 maxblocks  1 2 3

2 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

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

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

2 x Process Creation  1 2 3

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

2 x Shell Scripts (1 concurrent)  1 2 3

2 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
############             系统的基本信息                ####################
   BYTE UNIX Benchmarks (Version 5.1.6)

   System: VM-16-12-centos: GNU/Linux
   OS: GNU/Linux -- 3.10.0-1160.31.1.el7.x86_64 -- #1 SMP Thu Jun 10 13:32:12 UTC 2021
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) Gold 6133 CPU @ 2.50GHz (4988.3 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Xeon(R) Gold 6133 CPU @ 2.50GHz (4988.3 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   17:18:21 up 44 min,  2 users,  load average: 0.16, 0.09, 0.11; runlevel 2021-11-03

------------------------------------------------------------------------
###########  单核心跑分情况
Benchmark Run: Wed Nov 03 2021 17:18:21 - 17:46:24
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       30242862.5 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4057.4 MWIPS (9.2 s, 7 samples)
Execl Throughput                               2143.2 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        404486.7 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          114360.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1217538.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                              597871.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  41061.2 lps   (10.0 s, 7 samples)
Process Creation                               7089.6 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   4693.1 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    927.7 lpm   (60.0 s, 2 samples)
System Call Overhead                         382315.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   30242862.5   2591.5
Double-Precision Whetstone                       55.0       4057.4    737.7
Execl Throughput                                 43.0       2143.2    498.4
File Copy 1024 bufsize 2000 maxblocks          3960.0     404486.7   1021.4
File Copy 256 bufsize 500 maxblocks            1655.0     114360.9    691.0
File Copy 4096 bufsize 8000 maxblocks          5800.0    1217538.3   2099.2
Pipe Throughput                               12440.0     597871.6    480.6
Pipe-based Context Switching                   4000.0      41061.2    102.7
Process Creation                                126.0       7089.6    562.7
Shell Scripts (1 concurrent)                     42.4       4693.1   1106.9
Shell Scripts (8 concurrent)                      6.0        927.7   1546.1
System Call Overhead                          15000.0     382315.4    254.9
                                                                   ========
System Benchmarks Index Score                                         712.4

------------------------------------------------------------------------
###########  整体跑分情况

Benchmark Run: Wed Nov 03 2021 17:46:24 - 18:14:36
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables       59846268.9 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     7782.5 MWIPS (9.9 s, 7 samples)
Execl Throughput                               3964.4 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        618072.5 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          161525.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1934016.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1133058.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 138129.7 lps   (10.0 s, 7 samples)
Process Creation                              12641.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   6468.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    976.9 lpm   (60.1 s, 2 samples)
System Call Overhead                         701379.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   59846268.9   5128.2
Double-Precision Whetstone                       55.0       7782.5   1415.0
Execl Throughput                                 43.0       3964.4    922.0
File Copy 1024 bufsize 2000 maxblocks          3960.0     618072.5   1560.8
File Copy 256 bufsize 500 maxblocks            1655.0     161525.5    976.0
File Copy 4096 bufsize 8000 maxblocks          5800.0    1934016.5   3334.5
Pipe Throughput                               12440.0    1133058.0    910.8
Pipe-based Context Switching                   4000.0     138129.7    345.3
Process Creation                                126.0      12641.4   1003.3
Shell Scripts (1 concurrent)                     42.4       6468.6   1525.6
Shell Scripts (8 concurrent)                      6.0        976.9   1628.2
System Call Overhead                          15000.0     701379.4    467.6
                                                                   ========
System Benchmarks Index Score                                        1233.9
-----------------------------------
Linux跑分-unixbench性能测试
https://blog.51cto.com/u_15127659/4541918

VPS 测试

Digital Ocean

配置:
Basic 1 GB RAM/1 Intel CPU
25 GB NVMe SSDs
   BYTE UNIX Benchmarks (Version 5.1.6)

   System: websiteDoc: GNU/Linux
   OS: GNU/Linux -- 5.4.0-109-generic -- #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: DO-Premium-Intel (4000.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   05:26:53 up 18 days, 13:25,  1 user,  load average: 0.04, 0.01, 0.00; runlevel 2022-05-02

------------------------------------------------------------------------
Benchmark Run: Sat May 21 2022 05:26:53 - 05:55:00
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       31303672.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     5157.7 MWIPS (9.9 s, 7 samples)
Execl Throughput                               3617.6 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        907175.4 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          262536.8 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1902311.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1758132.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 191454.4 lps   (10.0 s, 7 samples)
Process Creation                              10849.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   7043.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    902.9 lpm   (60.0 s, 2 samples)
System Call Overhead                        2171213.1 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   31303672.1   2682.4
Double-Precision Whetstone                       55.0       5157.7    937.8
Execl Throughput                                 43.0       3617.6    841.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     907175.4   2290.8
File Copy 256 bufsize 500 maxblocks            1655.0     262536.8   1586.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    1902311.1   3279.8
Pipe Throughput                               12440.0    1758132.0   1413.3
Pipe-based Context Switching                   4000.0     191454.4    478.6
Process Creation                                126.0      10849.5    861.1
Shell Scripts (1 concurrent)                     42.4       7043.6   1661.2
Shell Scripts (8 concurrent)                      6.0        902.9   1504.8
System Call Overhead                          15000.0    2171213.1   1447.5
                                                                   ========
System Benchmarks Index Score                                        1392.5
配置:
Basic 2 GB RAM/1 Intel CPU
50 GB NVMe SSDs
   BYTE UNIX Benchmarks (Version 5.1.6)

   System: dst: GNU/Linux
   OS: GNU/Linux -- 5.4.0-107-generic -- #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: DO-Premium-Intel (4988.3 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   05:59:46 up  8:03,  1 user,  load average: 0.16, 0.03, 0.01; runlevel 2022-05-21

------------------------------------------------------------------------
Benchmark Run: Sun May 22 2022 05:59:46 - 06:27:52
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       30188736.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     5696.0 MWIPS (9.6 s, 7 samples)
Execl Throughput                               2919.2 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        484469.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          158931.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1026676.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1423153.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 165359.4 lps   (10.0 s, 7 samples)
Process Creation                               8724.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   4682.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    625.1 lpm   (60.1 s, 2 samples)
System Call Overhead                        1797555.2 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   30188736.8   2586.9
Double-Precision Whetstone                       55.0       5696.0   1035.6
Execl Throughput                                 43.0       2919.2    678.9
File Copy 1024 bufsize 2000 maxblocks          3960.0     484469.3   1223.4
File Copy 256 bufsize 500 maxblocks            1655.0     158931.9    960.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    1026676.4   1770.1
Pipe Throughput                               12440.0    1423153.5   1144.0
Pipe-based Context Switching                   4000.0     165359.4    413.4
Process Creation                                126.0       8724.9    692.5
Shell Scripts (1 concurrent)                     42.4       4682.6   1104.4
Shell Scripts (8 concurrent)                      6.0        625.1   1041.8
System Call Overhead                          15000.0    1797555.2   1198.4
                                                                   ========
System Benchmarks Index Score                                        1045.6

RackNerd

配置:
1 CPU/ 1 GB RAM
   BYTE UNIX Benchmarks (Version 5.1.6)

   System: racknerd-1d44f1: GNU/Linux
   OS: GNU/Linux -- 5.4.0-110-generic -- #124-Ubuntu SMP Thu Apr 14 19:46:19 UTC 2022
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz (5600.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   03:18:59 up 1 day,  9:26,  1 user,  load average: 0.08, 0.02, 0.01; runlevel 2022-05-19

------------------------------------------------------------------------
Benchmark Run: Sat May 21 2022 03:18:59 - 03:47:02
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       32683058.5 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     5072.9 MWIPS (9.7 s, 7 samples)
Execl Throughput                               2471.0 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        345614.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           94615.6 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        890389.6 KBps  (30.0 s, 2 samples)
Pipe Throughput                              604326.3 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 101498.6 lps   (10.0 s, 7 samples)
Process Creation                               6635.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5168.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    657.2 lpm   (60.0 s, 2 samples)
System Call Overhead                         371608.7 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   32683058.5   2800.6
Double-Precision Whetstone                       55.0       5072.9    922.3
Execl Throughput                                 43.0       2471.0    574.6
File Copy 1024 bufsize 2000 maxblocks          3960.0     345614.3    872.8
File Copy 256 bufsize 500 maxblocks            1655.0      94615.6    571.7
File Copy 4096 bufsize 8000 maxblocks          5800.0     890389.6   1535.2
Pipe Throughput                               12440.0     604326.3    485.8
Pipe-based Context Switching                   4000.0     101498.6    253.7
Process Creation                                126.0       6635.5    526.6
Shell Scripts (1 concurrent)                     42.4       5168.0   1218.9
Shell Scripts (8 concurrent)                      6.0        657.2   1095.3
System Call Overhead                          15000.0     371608.7    247.7
                                                                   ========
System Benchmarks Index Score                                         733.9

CloudCone

配置:
Compute (SC2)
3 vCPU Cores/4 GB RAM
80 GB RAID-10 Pure SSD
   BYTE UNIX Benchmarks (Version 5.1.6)

   System: dst: GNU/Linux
   OS: GNU/Linux -- 5.4.0-110-generic -- #124-Ubuntu SMP Thu Apr 14 19:46:19 UTC 2022
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel Xeon E312xx (Sandy Bridge, IBRS update) (4389.7 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel Xeon E312xx (Sandy Bridge, IBRS update) (4389.7 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 2: Intel Xeon E312xx (Sandy Bridge, IBRS update) (4389.7 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   03:16:37 up 14:22,  1 user,  load average: 0.27, 0.08, 0.02; runlevel 2022-05-20

------------------------------------------------------------------------
Benchmark Run: Sat May 21 2022 03:16:37 - 03:44:47
3 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       27146353.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4360.0 MWIPS (9.8 s, 7 samples)
Execl Throughput                               2253.2 lps   (29.6 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        210229.4 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           55218.3 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        628598.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                              328707.1 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  38883.7 lps   (10.0 s, 7 samples)
Process Creation                               3652.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3955.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    911.8 lpm   (60.0 s, 2 samples)
System Call Overhead                         235489.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   27146353.4   2326.2
Double-Precision Whetstone                       55.0       4360.0    792.7
Execl Throughput                                 43.0       2253.2    524.0
File Copy 1024 bufsize 2000 maxblocks          3960.0     210229.4    530.9
File Copy 256 bufsize 500 maxblocks            1655.0      55218.3    333.6
File Copy 4096 bufsize 8000 maxblocks          5800.0     628598.1   1083.8
Pipe Throughput                               12440.0     328707.1    264.2
Pipe-based Context Switching                   4000.0      38883.7     97.2
Process Creation                                126.0       3652.5    289.9
Shell Scripts (1 concurrent)                     42.4       3955.6    932.9
Shell Scripts (8 concurrent)                      6.0        911.8   1519.6
System Call Overhead                          15000.0     235489.6    157.0
                                                                   ========
System Benchmarks Index Score                                         509.7

------------------------------------------------------------------------
Benchmark Run: Sat May 21 2022 03:44:47 - 04:12:57
3 CPUs in system; running 3 parallel copies of tests

Dhrystone 2 using register variables       73177033.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    12692.1 MWIPS (10.0 s, 7 samples)
Execl Throughput                               5042.0 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        470470.8 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          111886.4 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1433805.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                              924273.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  78665.7 lps   (10.0 s, 7 samples)
Process Creation                               8350.3 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   6999.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1289.0 lpm   (60.0 s, 2 samples)
System Call Overhead                         625365.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   73177033.8   6270.5
Double-Precision Whetstone                       55.0      12692.1   2307.7
Execl Throughput                                 43.0       5042.0   1172.6
File Copy 1024 bufsize 2000 maxblocks          3960.0     470470.8   1188.1
File Copy 256 bufsize 500 maxblocks            1655.0     111886.4    676.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    1433805.5   2472.1
Pipe Throughput                               12440.0     924273.0    743.0
Pipe-based Context Switching                   4000.0      78665.7    196.7
Process Creation                                126.0       8350.3    662.7
Shell Scripts (1 concurrent)                     42.4       6999.0   1650.7
Shell Scripts (8 concurrent)                      6.0       1289.0   2148.3
System Call Overhead                          15000.0     625365.3    416.9
                                                                   ========
System Benchmarks Index Score                                        1140.1

其他常见平台测试

可能到这里,大家对这些服务器的性能还没一个概念,

因此,我们可以参考一下常用物理服务器的性能,数据来源于GitHub Jongwook

i7-6700K@4.4GHz

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

   System: jongwook-mint: GNU/Linux
   OS: GNU/Linux -- 3.16.0-38-generic -- #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8016.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 1: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8016.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 2: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8016.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 3: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8016.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 4: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8016.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 5: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8016.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 6: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8016.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 7: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8016.1 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   16:08:25 up 35 min,  4 users,  load average: 0.00, 0.01, 0.05; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Mon Nov 23 2015 16:08:25 - 16:37:25
8 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       52473047.2 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3843.8 MWIPS (15.8 s, 7 samples)
Execl Throughput                               1920.8 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1583171.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          416230.3 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       3594020.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2665626.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 163348.1 lps   (10.0 s, 7 samples)
Process Creation                              16820.0 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   9781.5 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   5482.5 lpm   (60.0 s, 2 samples)
System Call Overhead                        5587896.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   52473047.2   4496.4
Double-Precision Whetstone                       55.0       3843.8    698.9
Execl Throughput                                 43.0       1920.8    446.7
File Copy 1024 bufsize 2000 maxblocks          3960.0    1583171.9   3997.9
File Copy 256 bufsize 500 maxblocks            1655.0     416230.3   2515.0
File Copy 4096 bufsize 8000 maxblocks          5800.0    3594020.1   6196.6
Pipe Throughput                               12440.0    2665626.9   2142.8
Pipe-based Context Switching                   4000.0     163348.1    408.4
Process Creation                                126.0      16820.0   1334.9
Shell Scripts (1 concurrent)                     42.4       9781.5   2306.9
Shell Scripts (8 concurrent)                      6.0       5482.5   9137.5
System Call Overhead                          15000.0    5587896.0   3725.3
                                                                   ========
System Benchmarks Index Score                                        2115.2

------------------------------------------------------------------------
Benchmark Run: Mon Nov 23 2015 16:37:25 - 17:06:20
8 CPUs in system; running 8 parallel copies of tests

Dhrystone 2 using register variables      246989347.3 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    27667.1 MWIPS (15.0 s, 7 samples)
Execl Throughput                              31615.6 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1222104.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          334023.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       4092192.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                            14552057.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                2675429.7 lps   (10.0 s, 7 samples)
Process Creation                              74427.6 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  55646.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   9222.8 lpm   (60.0 s, 2 samples)
System Call Overhead                       10600401.9 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  246989347.3  21164.5
Double-Precision Whetstone                       55.0      27667.1   5030.4
Execl Throughput                                 43.0      31615.6   7352.5
File Copy 1024 bufsize 2000 maxblocks          3960.0    1222104.0   3086.1
File Copy 256 bufsize 500 maxblocks            1655.0     334023.5   2018.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    4092192.4   7055.5
Pipe Throughput                               12440.0   14552057.6  11697.8
Pipe-based Context Switching                   4000.0    2675429.7   6688.6
Process Creation                                126.0      74427.6   5907.0
Shell Scripts (1 concurrent)                     42.4      55646.6  13124.2
Shell Scripts (8 concurrent)                      6.0       9222.8  15371.3
System Call Overhead                          15000.0   10600401.9   7066.9
                                                                   ========
System Benchmarks Index Score                                        7293.7

raspberry-pi-2

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

   System: raspberrypi: GNU/Linux
   OS: GNU/Linux -- 4.1.7-v7+ -- #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015
   Machine: armv7l (unknown)
   Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")
   CPU 0: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)

   CPU 1: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)

   CPU 2: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)

   CPU 3: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)

   02:05:59 up 13 min,  3 users,  load average: 0.17, 0.14, 0.14; runlevel 5

------------------------------------------------------------------------
Benchmark Run: Fri Nov 06 2015 02:05:59 - 02:33:56
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        3006380.3 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                      435.4 MWIPS (9.9 s, 7 samples)
Execl Throughput                                331.1 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         73220.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           20929.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        192477.8 KBps  (30.0 s, 2 samples)
Pipe Throughput                              189065.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  34767.8 lps   (10.0 s, 7 samples)
Process Creation                               1213.3 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   1209.4 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    329.8 lpm   (60.1 s, 2 samples)
System Call Overhead                         401356.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    3006380.3    257.6
Double-Precision Whetstone                       55.0        435.4     79.2
Execl Throughput                                 43.0        331.1     77.0
File Copy 1024 bufsize 2000 maxblocks          3960.0      73220.9    184.9
File Copy 256 bufsize 500 maxblocks            1655.0      20929.0    126.5
File Copy 4096 bufsize 8000 maxblocks          5800.0     192477.8    331.9
Pipe Throughput                               12440.0     189065.9    152.0
Pipe-based Context Switching                   4000.0      34767.8     86.9
Process Creation                                126.0       1213.3     96.3
Shell Scripts (1 concurrent)                     42.4       1209.4    285.2
Shell Scripts (8 concurrent)                      6.0        329.8    549.7
System Call Overhead                          15000.0     401356.4    267.6
                                                                   ========
System Benchmarks Index Score                                         171.6

------------------------------------------------------------------------
Benchmark Run: Fri Nov 06 2015 02:33:56 - 03:01:59
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       12034683.9 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1742.6 MWIPS (10.0 s, 7 samples)
Execl Throughput                               1241.0 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        116871.4 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           31969.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        310103.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                              749658.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 130326.4 lps   (10.0 s, 7 samples)
Process Creation                               2631.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2619.4 lpm   (60.1 s, 2 samples)
Shell Scripts (8 concurrent)                    348.6 lpm   (60.2 s, 2 samples)
System Call Overhead                        1539627.7 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   12034683.9   1031.2
Double-Precision Whetstone                       55.0       1742.6    316.8
Execl Throughput                                 43.0       1241.0    288.6
File Copy 1024 bufsize 2000 maxblocks          3960.0     116871.4    295.1
File Copy 256 bufsize 500 maxblocks            1655.0      31969.5    193.2
File Copy 4096 bufsize 8000 maxblocks          5800.0     310103.5    534.7
Pipe Throughput                               12440.0     749658.6    602.6
Pipe-based Context Switching                   4000.0     130326.4    325.8
Process Creation                                126.0       2631.9    208.9
Shell Scripts (1 concurrent)                     42.4       2619.4    617.8
Shell Scripts (8 concurrent)                      6.0        348.6    581.0
System Call Overhead                          15000.0    1539627.7   1026.4
                                                                   ========
System Benchmarks Index Score                                         433.0

synology-ds1813+

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

   System: HappyStation: GNU/Linux
   OS: GNU/Linux -- 3.2.40 -- #4493 SMP Thu Aug 21 21:46:06 CST 2014
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Atom(TM) CPU D2701 @ 2.13GHz (4255.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Atom(TM) CPU D2701 @ 2.13GHz (4255.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 2: Intel(R) Atom(TM) CPU D2701 @ 2.13GHz (4255.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 3: Intel(R) Atom(TM) CPU D2701 @ 2.13GHz (4255.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   03:57am  up   0:33,  2 users,  load average: 0.80, 0.50, 0.41; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Wed Oct 29 2014 03:57:30 - 04:25:43
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        7547630.7 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                      590.7 MWIPS (10.0 s, 7 samples)
Execl Throughput                               1656.4 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        235055.8 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           67100.8 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        579291.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                              691787.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  81685.5 lps   (10.0 s, 7 samples)
Process Creation                               4483.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2072.4 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    585.3 lpm   (60.1 s, 2 samples)
System Call Overhead                        1365248.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    7547630.7    646.8
Double-Precision Whetstone                       55.0        590.7    107.4
Execl Throughput                                 43.0       1656.4    385.2
File Copy 1024 bufsize 2000 maxblocks          3960.0     235055.8    593.6
File Copy 256 bufsize 500 maxblocks            1655.0      67100.8    405.4
File Copy 4096 bufsize 8000 maxblocks          5800.0     579291.5    998.8
Pipe Throughput                               12440.0     691787.5    556.1
Pipe-based Context Switching                   4000.0      81685.5    204.2
Process Creation                                126.0       4483.7    355.8
Shell Scripts (1 concurrent)                     42.4       2072.4    488.8
Shell Scripts (8 concurrent)                      6.0        585.3    975.5
System Call Overhead                          15000.0    1365248.8    910.2
                                                                   ========
System Benchmarks Index Score                                         468.8

------------------------------------------------------------------------
Benchmark Run: Wed Oct 29 2014 04:25:43 - 04:54:00
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       21509044.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2043.8 MWIPS (10.0 s, 7 samples)
Execl Throughput                               4047.9 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        263694.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           74306.1 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        646650.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1506968.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 307615.1 lps   (10.0 s, 7 samples)
Process Creation                              10846.3 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   4820.2 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    615.1 lpm   (60.1 s, 2 samples)
System Call Overhead                        3263152.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   21509044.8   1843.1
Double-Precision Whetstone                       55.0       2043.8    371.6
Execl Throughput                                 43.0       4047.9    941.4
File Copy 1024 bufsize 2000 maxblocks          3960.0     263694.0    665.9
File Copy 256 bufsize 500 maxblocks            1655.0      74306.1    449.0
File Copy 4096 bufsize 8000 maxblocks          5800.0     646650.3   1114.9
Pipe Throughput                               12440.0    1506968.9   1211.4
Pipe-based Context Switching                   4000.0     307615.1    769.0
Process Creation                                126.0      10846.3    860.8
Shell Scripts (1 concurrent)                     42.4       4820.2   1136.8
Shell Scripts (8 concurrent)                      6.0        615.1   1025.2
System Call Overhead                          15000.0    3263152.3   2175.4
                                                                   ========
System Benchmarks Index Score                                         933.3

总结

从实际游戏体验上来说,RackNerd > CloudCone > Digital Ocean
从服务器性能跑分来说,Digital Ocean > RackNerd > CloudCone
可以看得出与服务器性能关联不大,与内存大小关联也不大。猜测是与网络带宽有一定关系,但未经验证。

参考

文章目录