ここでは、UNIX BENCHを実行してみます。
■UNIX BENCHダウンロード先
http://www.hermit.org/Linux/Benchmarking/
(1)UNIX BENCH実行に必要なパッケージをインストールする。
[root@example ~]# yum -y install libX11-devel freeglut-devel# Xのベンチをしない場合は、上記パッケージをインストールしなくても大丈夫です。その場合は、Makefileの「GRAPHIC_TESTS = defined」をコメントアウトしてください。
(2)UNIX BENCH実行に必要なPerlモジュールをインストールする。
[root@example ~]# cpan -i Time::HiRes
(3)UNIX BENCHをダウンロードする。
[root@example ~]# wget http://www.hermit.org/Linux/Benchmarking/unixbench-5.1.2.tar.gz
(4)ダウンロードしたUNIX BENCHを解凍する。
[root@example ~]# tar zvxf unixbench-5.1.2.tar.gz
(5)UNIX BENCHの実行をする。
[root@example ~]# cd unixbench-5.1.2 [root@example unixbench-5.1.2]# make [root@example unixbench-5.1.2]# ./Run
・実行結果例
[root@example unixbench-5.1.2]# ./Run make all make[1]: Entering directory `/root/unixbench-5.1.2' Checking distribution of files ./pgms exists ./src exists ./testdir exists ./tmp exists ./results exists make[1]: Leaving directory `/root/unixbench-5.1.2' sh: 3dinfo: command not found # # # # # # # ##### ###### # # #### # # # # ## # # # # # # # ## # # # # # # # # # # # ## ##### ##### # # # # ###### # # # # # # ## # # # # # # # # # # # # ## # # # # # # # ## # # # # #### # # # # # ##### ###### # # #### # # Version 5.1.2 Based on the Byte Magazine Unix Benchmark Multi-CPU version Version 5 revisions by Ian Smith, Sunnyvale, CA, USA December 22, 2007 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.2) System: example.local: GNU/Linux OS: GNU/Linux -- 2.6.32-71.el6.x86_64 -- #1 SMP Fri May 20 03:51:51 BST 2011 Machine: x86_64 (x86_64) Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") CPU 0: Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz (5652.5 bogomips) x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET 00:05:14 up 5:08, 2 users, load average: 0.52, 0.21, 0.08; runlevel 3 ------------------------------------------------------------------------ Benchmark Run: 日 9月 25 2011 00:05:14 - 00:33:24 1 CPU in system; running 1 parallel copy of tests Dhrystone 2 using register variables 24900028.3 lps (10.0 s, 7 samples) Double-Precision Whetstone 3332.5 MWIPS (9.9 s, 7 samples) Execl Throughput 1517.5 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 870981.4 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 251103.4 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 1333421.4 KBps (30.0 s, 2 samples) Pipe Throughput 1507628.5 lps (10.0 s, 7 samples) Pipe-based Context Switching 145566.3 lps (10.0 s, 7 samples) Process Creation 2688.0 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 2328.3 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 307.1 lpm (60.2 s, 2 samples) System Call Overhead 1600767.7 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 24900028.3 2133.7 Double-Precision Whetstone 55.0 3332.5 605.9 Execl Throughput 43.0 1517.5 352.9 File Copy 1024 bufsize 2000 maxblocks 3960.0 870981.4 2199.4 File Copy 256 bufsize 500 maxblocks 1655.0 251103.4 1517.2 File Copy 4096 bufsize 8000 maxblocks 5800.0 1333421.4 2299.0 Pipe Throughput 12440.0 1507628.5 1211.9 Pipe-based Context Switching 4000.0 145566.3 363.9 Process Creation 126.0 2688.0 213.3 Shell Scripts (1 concurrent) 42.4 2328.3 549.1 Shell Scripts (8 concurrent) 6.0 307.1 511.8 System Call Overhead 15000.0 1600767.7 1067.2 ======== System Benchmarks Index Score 824.6