ベンチマークのためにUnixBenchを使う

有名なUnixBenchを使ってみる。それで、普段使っているLinuxベンチマークを実行する。VMware player上で動かしているLinuxだけど。

ダウンロード

最新バージョン5.1.2のターボールを、以下のサイトからダウンロードする。
Download: UnixBench 5.1.2

ビルド

ダウンロードファイルを展開した中の「README」ファイルの記述に従い、Makefileを書き変える。自分の場合、特に書き変える箇所はなかったので、オリジナルのMakefileをそのまま使う。その他の主な確認事項は次の2つ。

  • 「GL_LIBS = -lGL -lXext -lX11」が自分のシステムで適切かどうか確認する。これはどう確認してよいか分からないので、このままにしておく。
  • コマンド「x11perf」にパスが通っていることを確認する。これはOK。
$ make

特にエラーはなく、「Run」ファイルが作成された。

テストの実行

システムテストとグラフィックステストを両方実行してみる。

$ ./Run gindex >& log.results

実行に要する時間は、30分以上。途中、ウィンドウがいきなり開いていろいろな図形を表示する。たぶん、グラフィックステストかな。


▲こんな図形や、


▲こんなのや、


▲こんなのが表示される。

実行時に出力されるログは以下の通り。

make all
make[1]: Entering directory `/home/hoge/Download/unixbench-5.1.2'
Checking distribution of files
./pgms exists
./src exists
./testdir exists
./tmp exists
./results exists
make[1]: Leaving directory `/home/hoge/Download/unixbench-5.1.2'
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
sh: 3dinfo: command not found
sh: runlevel: 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

1 x 2D graphics: rectangles 1

*********************************************

Run: "2D graphics: rectangles": perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").; aborting

結果

実行が終わると、results/ディレクトリが作成されて、結果がファイルとして出力される。その中のhtmlファイルを表示したものが以下の写真。