「Raspberry Pi 2」を UnixBench でベンチマークした。
手順とログを貼っておきたいので、長くなるので結論から書くと「Raspberry Pi 2」のスコアは「440.9」でした。
「Raspberry Pi 1 Model B」のスコアは「75.9」だったので、「約6倍」の実行速度はその通りだった。(440.9 / 75.9 = 約 5.8)
以下、UnixBench の実行手順と実行結果、各 Raspberry Pi のスペックなど。
Raspberry Pi (Raspbian) で UnixBench を実行する手順
UnixBench のダウンロード
$ wget https://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
解凍
$ tar zxvf UnixBench5.1.3.tgz
実行
$ cd UnixBench/
$ ./Run
実行時のエラーについて
UnixBench 実行すると下記のエラーがでるけど、「locale」って書いてあるので地域や言語の設定が何か足りないんだと思う。「Raspbian」の初期設定時に地域と言語を日本に変更したのでその関係かなぁ。まぁ実行自体はできているのでとりあえあず無視する。
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
UnixBench の実行結果
いろいろ出力されるけど、最後の「System Benchmarks Index Score」が最終的なスコアだと思われる。
Raspberry Pi 2 のベンチマーク結果
「Raspberry Pi 2」の「System Benchmarks Index Score」は「440.9」。
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: xxx: GNU/Linux
OS: GNU/Linux -- 3.18.7-v7+ -- #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015
Machine: armv7l (unknown)
Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")
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)
11:58:03 up 17 min, 1 user, load average: 0.09, 0.04, 0.05; runlevel 2
------------------------------------------------------------------------
Benchmark Run: 土 2月 14 2015 11:58:03 - 12:26:01
4 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 2956988.7 lps (10.0 s, 7 samples)
Double-Precision Whetstone 496.8 MWIPS (10.0 s, 7 samples)
Execl Throughput 345.5 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 72407.8 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 20838.5 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 187488.6 KBps (30.0 s, 2 samples)
Pipe Throughput 174990.9 lps (10.0 s, 7 samples)
Pipe-based Context Switching 31715.4 lps (10.0 s, 7 samples)
Process Creation 1303.0 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 1191.5 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 331.8 lpm (60.1 s, 2 samples)
System Call Overhead 410586.6 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 2956988.7 253.4
Double-Precision Whetstone 55.0 496.8 90.3
Execl Throughput 43.0 345.5 80.4
File Copy 1024 bufsize 2000 maxblocks 3960.0 72407.8 182.8
File Copy 256 bufsize 500 maxblocks 1655.0 20838.5 125.9
File Copy 4096 bufsize 8000 maxblocks 5800.0 187488.6 323.3
Pipe Throughput 12440.0 174990.9 140.7
Pipe-based Context Switching 4000.0 31715.4 79.3
Process Creation 126.0 1303.0 103.4
Shell Scripts (1 concurrent) 42.4 1191.5 281.0
Shell Scripts (8 concurrent) 6.0 331.8 552.9
System Call Overhead 15000.0 410586.6 273.7
========
System Benchmarks Index Score 172.0
------------------------------------------------------------------------
Benchmark Run: 土 2月 14 2015 12:26:01 - 12:54:07
4 CPUs in system; running 4 parallel copies of tests
Dhrystone 2 using register variables 11816855.0 lps (10.0 s, 7 samples)
Double-Precision Whetstone 1985.4 MWIPS (10.0 s, 7 samples)
Execl Throughput 1347.4 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 114481.9 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 32636.5 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 314437.3 KBps (30.0 s, 2 samples)
Pipe Throughput 695644.3 lps (10.0 s, 7 samples)
Pipe-based Context Switching 123301.0 lps (10.0 s, 7 samples)
Process Creation 2883.7 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 2657.2 lpm (60.1 s, 2 samples)
Shell Scripts (8 concurrent) 351.0 lpm (60.3 s, 2 samples)
System Call Overhead 1580606.8 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 11816855.0 1012.6
Double-Precision Whetstone 55.0 1985.4 361.0
Execl Throughput 43.0 1347.4 313.3
File Copy 1024 bufsize 2000 maxblocks 3960.0 114481.9 289.1
File Copy 256 bufsize 500 maxblocks 1655.0 32636.5 197.2
File Copy 4096 bufsize 8000 maxblocks 5800.0 314437.3 542.1
Pipe Throughput 12440.0 695644.3 559.2
Pipe-based Context Switching 4000.0 123301.0 308.3
Process Creation 126.0 2883.7 228.9
Shell Scripts (1 concurrent) 42.4 2657.2 626.7
Shell Scripts (8 concurrent) 6.0 351.0 585.0
System Call Overhead 15000.0 1580606.8 1053.7
========
System Benchmarks Index Score 440.9
Raspberry Pi 1 Model B のベンチマーク結果
「Raspberry Pi 1 Model B」の「System Benchmarks Index Score」は「75.9」。
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: xxx: 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="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")
CPU 0: ARMv6-compatible processor rev 7 (v6l) (0.0 bogomips)
01:05:01 up 9 min, 1 user, load average: 0.45, 0.20, 0.11; runlevel 2
------------------------------------------------------------------------
Benchmark Run: 火 2月 10 2015 01:05:01 - 01:33:21
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 1658861.6 lps (10.0 s, 7 samples)
Double-Precision Whetstone 267.2 MWIPS (10.0 s, 7 samples)
Execl Throughput 179.4 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 29087.4 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 8746.5 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 76235.5 KBps (30.0 s, 2 samples)
Pipe Throughput 126779.1 lps (10.0 s, 7 samples)
Pipe-based Context Switching 15352.2 lps (10.0 s, 7 samples)
Process Creation 460.4 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 388.2 lpm (60.1 s, 2 samples)
Shell Scripts (8 concurrent) 49.5 lpm (60.6 s, 2 samples)
System Call Overhead 345696.0 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 1658861.6 142.1
Double-Precision Whetstone 55.0 267.2 48.6
Execl Throughput 43.0 179.4 41.7
File Copy 1024 bufsize 2000 maxblocks 3960.0 29087.4 73.5
File Copy 256 bufsize 500 maxblocks 1655.0 8746.5 52.8
File Copy 4096 bufsize 8000 maxblocks 5800.0 76235.5 131.4
Pipe Throughput 12440.0 126779.1 101.9
Pipe-based Context Switching 4000.0 15352.2 38.4
Process Creation 126.0 460.4 36.5
Shell Scripts (1 concurrent) 42.4 388.2 91.5
Shell Scripts (8 concurrent) 6.0 49.5 82.5
System Call Overhead 15000.0 345696.0 230.5
========
System Benchmarks Index Score 75.9
ベンチマークした Raspberry Pi 2 の OS、CPU、メモリ、microSDカード
OS
$ cat /etc/issue
Raspbian GNU/Linux 7 \n \l
$ cat /etc/debian_version
7.8
CPU
本当に4コアある。すげぇ。
$ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 1
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 2
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 3
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
Hardware : BCM2709
Revision : a01041
Serial : 000000005e44b23a
メモリ
「MemTotal」は「949328 kB」(= 949.328 MB)。
$ cat /proc/meminfo MemTotal: 949328 kB MemFree: 839356 kB MemAvailable: 890132 kB Buffers: 15136 kB Cached: 48348 kB SwapCached: 0 kB Active: 55988 kB Inactive: 16840 kB Active(anon): 9388 kB Inactive(anon): 204 kB Active(file): 46600 kB Inactive(file): 16636 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 102396 kB SwapFree: 102396 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 9348 kB Mapped: 9764 kB Shmem: 244 kB Slab: 25228 kB SReclaimable: 16040 kB SUnreclaim: 9188 kB KernelStack: 704 kB PageTables: 596 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 577060 kB Committed_AS: 45036 kB VmallocTotal: 1105920 kB VmallocUsed: 4128 kB VmallocChunk: 873152 kB
microSDカード
microSDカードは下記の商品。「8GB」の「Class 10」。
シリコンパワー microSDHCカード 8GB (Class10) 永久保証 (SDHCアダプター付) SP008GBSTH010V10-SP
ベンチマークした Raspberry Pi 1 Model B の OS、CPU、メモリ、SDカード
OS
$ cat /etc/issue
Raspbian GNU/Linux 7 \n \l
$ cat /etc/debian_version
7.8
CPU
こちらは1コア。
$ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2708
Revision : 000e
Serial : 000000003933eed3
メモリ
「MemTotal」は「445740 kB」(= 445.74 MB)。
$ cat /proc/meminfo
MemTotal: 445740 kB
MemFree: 383364 kB
MemAvailable: 400508 kB
Buffers: 8060 kB
Cached: 28120 kB
SwapCached: 0 kB
Active: 31860 kB
Inactive: 13584 kB
Active(anon): 9300 kB
Inactive(anon): 204 kB
Active(file): 22560 kB
Inactive(file): 13380 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 102396 kB
SwapFree: 102396 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 9276 kB
Mapped: 9812 kB
Shmem: 244 kB
Slab: 7860 kB
SReclaimable: 3364 kB
SUnreclaim: 4496 kB
KernelStack: 576 kB
PageTables: 588 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 325264 kB
Committed_AS: 44960 kB
VmallocTotal: 565248 kB
VmallocUsed: 936 kB
VmallocChunk: 326316 kB
SDカード
SDカードは下記の商品。「8GB」の「Class 10」。