Raspberry Pi Model B+とRaspberry Pi 2 Model BでUnixBenchを実行してみた。

まぁそのままなんですけど、Raspberry Pi Model B+とRaspberry Pi 2 Model Bで、UnixBenchを実行してみただけというお話。
条件としてはRaspbian (2015-01-31版)を焼いて、初期設定としてファイルシステムの拡張、Locale/Timezone/Keyboardの設定をしたぐらいかなと。

まずはRaspberry Pi Model B+のスコア。

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   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: raspberrypi: GNU/Linux
   OS: GNU/Linux -- 3.18.5+ -- #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015
   Machine: armv6l (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: ARMv6-compatible processor rev 7 (v6l) (0.0 bogomips)

   00:13:02 up 3 min,  1 user,  load average: 0.47, 0.19, 0.08; runlevel 2

------------------------------------------------------------------------
Benchmark Run: 水  2月 11 2015 00:13:02 - 00:41:13
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        1663555.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                      265.9 MWIPS (9.9 s, 7 samples)
Execl Throughput                                179.4 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         29483.4 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks            8854.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks         76064.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                              128086.2 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  15551.7 lps   (10.0 s, 7 samples)
Process Creation                                456.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                    341.3 lpm   (60.1 s, 2 samples)
Shell Scripts (8 concurrent)                     45.9 lpm   (60.7 s, 2 samples)
System Call Overhead                         365399.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    1663555.1    142.5
Double-Precision Whetstone                       55.0        265.9     48.3
Execl Throughput                                 43.0        179.4     41.7
File Copy 1024 bufsize 2000 maxblocks          3960.0      29483.4     74.5
File Copy 256 bufsize 500 maxblocks            1655.0       8854.0     53.5
File Copy 4096 bufsize 8000 maxblocks          5800.0      76064.5    131.1
Pipe Throughput                               12440.0     128086.2    103.0
Pipe-based Context Switching                   4000.0      15551.7     38.9
Process Creation                                126.0        456.1     36.2
Shell Scripts (1 concurrent)                     42.4        341.3     80.5
Shell Scripts (8 concurrent)                      6.0         45.9     76.5
System Call Overhead                          15000.0     365399.4    243.6
                                                                   ========
System Benchmarks Index Score                                          75.2

 

次にRaspberry Pi 2 Model Bのスコア。

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   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: raspberrypi: GNU/Linux
   OS: GNU/Linux -- 3.18.5-v7+ -- #225 SMP PREEMPT Fri Jan 30 18:53:55 GMT 2015
   Machine: armv7l (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)

   CPU 1: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)

   CPU 2: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)

   CPU 3: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)

   00:49:30 up 1 min,  1 user,  load average: 0.27, 0.09, 0.03; runlevel 2

------------------------------------------------------------------------
Benchmark Run: 水  2月 11 2015 00:49:30 - 01:17:34
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        2964697.9 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                      497.0 MWIPS (10.0 s, 7 samples)
Execl Throughput                                362.6 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         73160.5 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           21281.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        185630.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                              173647.8 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  31854.3 lps   (10.0 s, 7 samples)
Process Creation                               1281.2 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   1054.9 lpm   (60.1 s, 2 samples)
Shell Scripts (8 concurrent)                    306.2 lpm   (60.2 s, 2 samples)
System Call Overhead                         413012.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    2964697.9    254.0
Double-Precision Whetstone                       55.0        497.0     90.4
Execl Throughput                                 43.0        362.6     84.3
File Copy 1024 bufsize 2000 maxblocks          3960.0      73160.5    184.7
File Copy 256 bufsize 500 maxblocks            1655.0      21281.5    128.6
File Copy 4096 bufsize 8000 maxblocks          5800.0     185630.0    320.1
Pipe Throughput                               12440.0     173647.8    139.6
Pipe-based Context Switching                   4000.0      31854.3     79.6
Process Creation                                126.0       1281.2    101.7
Shell Scripts (1 concurrent)                     42.4       1054.9    248.8
Shell Scripts (8 concurrent)                      6.0        306.2    510.3
System Call Overhead                          15000.0     413012.6    275.3
                                                                   ========
System Benchmarks Index Score                                         170.0

------------------------------------------------------------------------
Benchmark Run: 水  2月 11 2015 01:17:34 - 01:45:46
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       11835924.7 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1985.2 MWIPS (10.0 s, 7 samples)
Execl Throughput                               1347.0 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        117018.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           32805.7 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        309126.6 KBps  (30.0 s, 2 samples)
Pipe Throughput                              688788.7 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 122400.1 lps   (10.0 s, 7 samples)
Process Creation                               2849.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2520.6 lpm   (60.1 s, 2 samples)
Shell Scripts (8 concurrent)                    330.9 lpm   (60.4 s, 2 samples)
System Call Overhead                        1572616.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   11835924.7   1014.2
Double-Precision Whetstone                       55.0       1985.2    360.9
Execl Throughput                                 43.0       1347.0    313.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     117018.0    295.5
File Copy 256 bufsize 500 maxblocks            1655.0      32805.7    198.2
File Copy 4096 bufsize 8000 maxblocks          5800.0     309126.6    533.0
Pipe Throughput                               12440.0     688788.7    553.7
Pipe-based Context Switching                   4000.0     122400.1    306.0
Process Creation                                126.0       2849.9    226.2
Shell Scripts (1 concurrent)                     42.4       2520.6    594.5
Shell Scripts (8 concurrent)                      6.0        330.9    551.5
System Call Overhead                          15000.0    1572616.8   1048.4
                                                                   ========
System Benchmarks Index Score                                         436.0

System Benchmarks Index Scoreで概ね6倍ぐらいかなと。
単純比較はできないですけど、Atom D425あたりぐらいと同じぐらいのIndex Scoreな気がする。

 

ちなみにちょうど良いところ(?)に kernel-3.19 がリリースされていたので、Raspberry Pi 2 Model Bでセルフビルドしたときの実行時間の計測結果も貼っておきます。
なおmake時のジョブ数は8(コア数の2倍)と安直に決定して、 “make -j 8” で実行しています。

real    79m14.340s
user    284m29.830s
sys     17m58.500s

79分ぐらいなら、急ぎでなければセルフビルドでも良いのかなと。(microSDの寿命は置いといて)


追記 (2015-02-12)

Raspberry Pi Model B+でも kernel-3.19 をセルフビルドしてみましたので、実行時間の計測結果を貼っておきます。
なおこっちもmake時のジョブ数はコア数の2倍にして、”make -j 2″ で実行しています。(こちらは引数は必要なかった気もする)

real    745m42.745s
user    703m39.580s
sys     30m1.300s

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中