CentOSでベンチマークツールを試してみる

VirtualBoxにCentOSをとりあえずインストール
の続き

ベンチマークツールをCentOSで試してみる。

事前準備

まずは、必要なツールをインストールしておく。

# yum -y install wget gcc

UnixBench

UnixBenchに必要なパッケージをインストールする。

# yum -y install perl perl-Time-HiRes

UnixBenchをダウンロードして、インストールする。

# wget http://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
# tar zxvf UnixBench5.1.3.tgz
# cd UnixBench
# make

UnixBenchを実行。

# ./Run

約30分後、結果が出た。

make all
make[1]: Entering directory `/home/hoge/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory `/home/hoge/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: localhost.localdomain: GNU/Linux
   OS: GNU/Linux -- 2.6.32-431.el6.x86_64 -- #1 SMP Fri Nov 22 03:15:09 UTC 2013
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz (4892.8 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   07:50:16 up 9 min,  1 user,  load average: 0.00, 0.00, 0.00; runlevel 3

------------------------------------------------------------------------
Benchmark Run: 金  502 2014 07:50:16 - 08:18:09
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       17356654.7 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1978.9 MWIPS (9.9 s, 7 samples)
Execl Throughput                               1484.9 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        296081.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           81775.2 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1201200.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1279625.4 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 217464.0 lps   (10.0 s, 7 samples)
Process Creation                               8328.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3369.4 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    445.5 lpm   (60.1 s, 2 samples)
System Call Overhead                        1754236.9 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   17356654.7   1487.3
Double-Precision Whetstone                       55.0       1978.9    359.8
Execl Throughput                                 43.0       1484.9    345.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     296081.3    747.7
File Copy 256 bufsize 500 maxblocks            1655.0      81775.2    494.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    1201200.4   2071.0
Pipe Throughput                               12440.0    1279625.4   1028.6
Pipe-based Context Switching                   4000.0     217464.0    543.7
Process Creation                                126.0       8328.1    661.0
Shell Scripts (1 concurrent)                     42.4       3369.4    794.7
Shell Scripts (8 concurrent)                      6.0        445.5    742.6
System Call Overhead                          15000.0    1754236.9   1169.5
                                                                   ========
System Benchmarks Index Score                                         758.2

姫野ベンチマーク

インストール先のディレクトリを作っておく。

# mkdir HimenoBench
# cd HimenoBench

ソースは、下記のサイトからダウンロードする。

ダウンロード (ソース & 実行形式(Win/Mac 用))/理化学研究所 情報基盤センター
http://accc.riken.jp/2462.htm

今回は、
ソースコード(C, static allocate version)のM
をインストールしてみる。

ソースをダウンロードする。

# wget http://accc.riken.jp/secure/4503/cc_himenobmtxp_m.lzh

LHAを解凍する必要があるので、RPMForgeのリポジトリを有効にして
lhaコマンドをインストールする。

# rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# vi /etc/yum.repos.d/rpmforge.repo
enable=0enable=1
# yum -y install lha --enablerepo=rpmforge

解凍して、インストールする。

# lha xg cc_himenobmtxp_m.lzh
# make

実行すると、

# ./bmt

結果が表示される。

mimax = 129 mjmax = 129 mkmax = 257
imax = 128 jmax = 128 kmax =256
 Start rehearsal measurement process.
 Measure the performance in 3 times.

 MFLOPS: 2248.141147 time(s): 0.182958 1.733593e-03

 Now, start the actual measurement process.
 The loop will be excuted in 983 times
 This will take about one minute.
 Wait for a while

 Loop executed for 983 times
 Gosa : 7.613501e-04
 MFLOPS measured : 1929.254745  cpu : 69.858244
 Score based on Pentium III 600MHz : 23.527497