VPSのベンチマーク

VPSのベンチマークをとってみる。

■対象VPS

  • ServersMan Proプラン CentOS 6.2 64bit(メモリ4GB, CPU 仮想16コア) ※/proc/cpuinfoによる
  • お名前.com VPS メモリ2GBプラン CentOS 5.9 32bit(メモリ2GB, CPU 仮想3コア)

■ベンチマーク

UnixBenchで測る。makeと実行に必要なものをダウンロード。

# yum install perl perl-Time-HiRes make gcc

UnixBenchの最新バージョンを確認。

https://code.google.com/p/byte-unixbench/downloads/list

ダウンロードとmake。

# curl -O https://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
# tar zxf UnixBench5.1.3.tgz
# cd UnixBench
# make

■実行

4コア利用。(16コアで実行したところ、ServersManでエラーが発生したため)

./Run -c 4

■結果

<ServersMan>

16 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables        9931940.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     5376.8 MWIPS (10.2 s, 7 samples)
Execl Throughput                               3458.6 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        269014.1 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           78252.6 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        738821.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                              870066.7 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 124893.1 lps   (10.0 s, 7 samples)
Process Creation                              10942.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3908.2 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    536.0 lpm   (60.3 s, 2 samples)
System Call Overhead                         820236.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    9931940.8    851.1
Double-Precision Whetstone                       55.0       5376.8    977.6
Execl Throughput                                 43.0       3458.6    804.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     269014.1    679.3
File Copy 256 bufsize 500 maxblocks            1655.0      78252.6    472.8
File Copy 4096 bufsize 8000 maxblocks          5800.0     738821.0   1273.8
Pipe Throughput                               12440.0     870066.7    699.4
Pipe-based Context Switching                   4000.0     124893.1    312.2
Process Creation                                126.0      10942.4    868.4
Shell Scripts (1 concurrent)                     42.4       3908.2    921.8
Shell Scripts (8 concurrent)                      6.0        536.0    893.4
System Call Overhead                          15000.0     820236.3    546.8
                                                                   ========
System Benchmarks Index Score                                         731.3

以下は参考。

  • 並列1、試行回数1(./Run -c 1 -i 1)485.6
  • 並列4、試行回数1(./Run -c 4 -i 1) 731.4
  • 並列8、試行回数1(./Run -c 8 -i 1) 753.2
  • 並列16、試行回数1(./Run -c 16 -i 1) エラー

<お名前.com VPS>

3 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       91580154.2 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    12620.0 MWIPS (9.5 s, 7 samples)
Execl Throughput                              12651.5 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        607325.2 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          150802.3 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1537542.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                             6203993.4 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                1003879.9 lps   (10.0 s, 7 samples)
Process Creation                              30982.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  15078.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   2081.4 lpm   (60.1 s, 2 samples)
System Call Overhead                        7052367.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   91580154.2   7847.5
Double-Precision Whetstone                       55.0      12620.0   2294.6
Execl Throughput                                 43.0      12651.5   2942.2
File Copy 1024 bufsize 2000 maxblocks          3960.0     607325.2   1533.6
File Copy 256 bufsize 500 maxblocks            1655.0     150802.3    911.2
File Copy 4096 bufsize 8000 maxblocks          5800.0    1537542.5   2650.9
Pipe Throughput                               12440.0    6203993.4   4987.1
Pipe-based Context Switching                   4000.0    1003879.9   2509.7
Process Creation                                126.0      30982.7   2458.9
Shell Scripts (1 concurrent)                     42.4      15078.6   3556.3
Shell Scripts (8 concurrent)                      6.0       2081.4   3469.0
System Call Overhead                          15000.0    7052367.8   4701.6
                                                                   ========
System Benchmarks Index Score                                        2897.6

お名前.com VPSの方が4倍スコアがいい。