読者です 読者をやめる 読者になる 読者になる

のんびりしているエンジニアの日記

ソフトウェアなどのエンジニア的な何かを書きます。

UbuntuとMacでUnix Benchを走らせてみた

Sponsored Links

皆さんこんにちは
お元気ですか。私は元気です。

正月は終わり、まるで未来の見えない何かと戦っているようです(修論)
PCが増えたのはいいんだけど作業が早くなるかどうかを確認したいなと思いBench Markを探していたら
手軽に動かせるのを発見したので動かしてみた感じです。

実行

Ubuntu

wget https://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
tar xvf UnixBench5.1.3.tgz
cd UnixBench/
make
./Run

Mac

wget https://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
git clone https://gist.github.com/11033924.git
tar xvf UnixBench5.1.3.tgz
cd UnixBench/
patch -p1 < ../11033924/UnixBench5.1.3.mavericks.patch
make
./Run

実行

make all
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
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

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: HirokiYamamoto-no-MacBook-Pro.local: Darwin
   OS: Darwin -- 13.1.0 -- Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap="US-ASCII", collate=)
   CPU 0: Intel(R) Core(TM) i7-4558U CPU @ 2.80GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 1: Intel(R) Core(TM) i7-4558U CPU @ 2.80GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 2: Intel(R) Core(TM) i7-4558U CPU @ 2.80GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 3: Intel(R) Core(TM) i7-4558U CPU @ 2.80GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   15:17  up 3 days, 14:17, 12 users, load averages: 1.89 1.93 1.90; runlevel 3

------------------------------------------------------------------------
Benchmark Run: 土  1 03 2015 15:17:27 - 15:45:46
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       32176085.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     5683.0 MWIPS (9.8 s, 7 samples)
Execl Throughput                                536.7 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        740178.2 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          212583.8 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1825564.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1176463.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 141191.0 lps   (10.0 s, 7 samples)
Process Creation                               3859.6 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3701.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    725.3 lpm   (60.1 s, 2 samples)
System Call Overhead                         745896.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   32176085.8   2757.2
Double-Precision Whetstone                       55.0       5683.0   1033.3
Execl Throughput                                 43.0        536.7    124.8
File Copy 1024 bufsize 2000 maxblocks          3960.0     740178.2   1869.1
File Copy 256 bufsize 500 maxblocks            1655.0     212583.8   1284.5
File Copy 4096 bufsize 8000 maxblocks          5800.0    1825564.4   3147.5
Pipe Throughput                               12440.0    1176463.6    945.7
Pipe-based Context Switching                   4000.0     141191.0    353.0
Process Creation                                126.0       3859.6    306.3
Shell Scripts (1 concurrent)                     42.4       3701.0    872.9
Shell Scripts (8 concurrent)                      6.0        725.3   1208.9
System Call Overhead                          15000.0     745896.8    497.3
                                                                   ========
System Benchmarks Index Score                                         851.0

------------------------------------------------------------------------
Benchmark Run: 土  1 03 2015 15:45:46 - 16:14:29
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       64147314.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    21056.8 MWIPS (9.8 s, 7 samples)
Execl Throughput                               1062.7 lps   (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        989313.8 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          328410.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       3208593.9 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2506047.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 481092.2 lps   (10.0 s, 7 samples)
Process Creation                              10823.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   6330.4 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    569.5 lpm   (60.3 s, 2 samples)
System Call Overhead                         334388.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   64147314.4   5496.8
Double-Precision Whetstone                       55.0      21056.8   3828.5
Execl Throughput                                 43.0       1062.7    247.1
File Copy 1024 bufsize 2000 maxblocks          3960.0     989313.8   2498.3
File Copy 256 bufsize 500 maxblocks            1655.0     328410.0   1984.4
File Copy 4096 bufsize 8000 maxblocks          5800.0    3208593.9   5532.1
Pipe Throughput                               12440.0    2506047.9   2014.5
Pipe-based Context Switching                   4000.0     481092.2   1202.7
Process Creation                                126.0      10823.5    859.0
Shell Scripts (1 concurrent)                     42.4       6330.4   1493.0
Shell Scripts (8 concurrent)                      6.0        569.5    949.2
System Call Overhead                          15000.0     334388.8    222.9
                                                                   ========
System Benchmarks Index Score                                        1460.0

マシンの状態まで出してくれる無駄に親切なプログラムです。
性能だけ見るのであれば、System Benchmarks Index Scoreのみ見れば問題ないらしい。

因みに更に詳細に知りたい方はUnixBenchでベンチマーク | IDC Frontier Engineers' Blogに載っています。暇な時に読んでみようかと。

広告を非表示にする