【Raspberry Pi】UnixBenchでRaspberryPi4のCPU性能を計測してみた

スポンサーリンク

こんにちは、しでしんです。

Raspberry Pi4のCPUファンを取り付ける前にすればよかったのですが、せっかくなのでUnixBenchでしでしんのRaspberry Pi4のCPU性能を計測してみました。Raspberry Pi 3 model B+も計測しないといけなかったのですが、今回はRaspberry Pi4の性能を計測します。

Raspberry Pi4BでUnixBenchをダウンロード

Raspberry Pi4Bのターミナル上で、下記コマンドを順番に打ち込みましょう。作業するフォルダはどこでもよいですが、/home/pi 配下でコマンドを打ち込みましょう。
最後の./Runの打ち込み後にベンチマークが始まります。ベンチマークは約1時間くらいかかります。

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install git
$ git clone https://github.com/kdlucas/byte-unixbench
$ cd byte-unixbench/UnixBench
$ ./Run

Raspberry Pi4Bの計測結果が出る

1時間ほど放置しておくと、ターミナル上にベンチマークの結果が出力されます。しでしんのRaspberry Pi4Bの結果です。CPUクーラー付き、Raspbian(Full install)、32GBメモリ、VNCで接続して実施。

========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)

System: raspberrypi: GNU/Linux
OS: GNU/Linux — 4.19.75-v7l+ — #1270 SMP Tue Sep 24 18:51:41 BST 2019
Machine: armv7l (unknown)
Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
CPU 0: ARMv7 Processor rev 3 (v7l) (0.0 bogomips)

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

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

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

21:46:51 up 6:30, 2 users, load average: 0.57, 0.24, 0.09; runlevel 2019-12-08

————————————————————————
Benchmark Run: 日 12月 08 2019 21:46:51 – 22:14:47
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 10189596.6 lps (10.0 s, 7 samples)
Double-Precision Whetstone 2385.6 MWIPS (9.6 s, 7 samples)
Execl Throughput 884.4 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 111423.7 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 31020.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 313981.0 KBps (30.0 s, 2 samples)
Pipe Throughput 138810.9 lps (10.0 s, 7 samples)
Pipe-based Context Switching 43504.8 lps (10.0 s, 7 samples)
Process Creation 1777.3 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 2410.2 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 724.6 lpm (60.1 s, 2 samples)
System Call Overhead 487562.0 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 10189596.6 873.1
Double-Precision Whetstone 55.0 2385.6 433.7
Execl Throughput 43.0 884.4 205.7
File Copy 1024 bufsize 2000 maxblocks 3960.0 111423.7 281.4
File Copy 256 bufsize 500 maxblocks 1655.0 31020.0 187.4
File Copy 4096 bufsize 8000 maxblocks 5800.0 313981.0 541.3
Pipe Throughput 12440.0 138810.9 111.6
Pipe-based Context Switching 4000.0 43504.8 108.8
Process Creation 126.0 1777.3 141.1
Shell Scripts (1 concurrent) 42.4 2410.2 568.4
Shell Scripts (8 concurrent) 6.0 724.6 1207.6
System Call Overhead 15000.0 487562.0 325.0
========
System Benchmarks Index Score 312.0

————————————————————————
Benchmark Run: 日 12月 08 2019 22:14:47 – 22:42:44
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables 40656671.7 lps (10.0 s, 7 samples)
Double-Precision Whetstone 9512.0 MWIPS (9.6 s, 7 samples)
Execl Throughput 2667.5 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 217938.0 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 60065.8 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 621246.8 KBps (30.0 s, 2 samples)
Pipe Throughput 507301.0 lps (10.0 s, 7 samples)
Pipe-based Context Switching 187836.9 lps (10.0 s, 7 samples)
Process Creation 4684.4 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 5766.9 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 791.3 lpm (60.2 s, 2 samples)
System Call Overhead 1841005.9 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 40656671.7 3483.9
Double-Precision Whetstone 55.0 9512.0 1729.5
Execl Throughput 43.0 2667.5 620.3
File Copy 1024 bufsize 2000 maxblocks 3960.0 217938.0 550.3
File Copy 256 bufsize 500 maxblocks 1655.0 60065.8 362.9
File Copy 4096 bufsize 8000 maxblocks 5800.0 621246.8 1071.1
Pipe Throughput 12440.0 507301.0 407.8
Pipe-based Context Switching 4000.0 187836.9 469.6
Process Creation 126.0 4684.4 371.8
Shell Scripts (1 concurrent) 42.4 5766.9 1360.1
Shell Scripts (8 concurrent) 6.0 791.3 1318.9
System Call Overhead 15000.0 1841005.9 1227.3
========
System Benchmarks Index Score 841.1
========================================================================

ベンチマークテストの結果のまとめ

1CPUと4CPUそれぞれの結果が載ります。一番最後の「System Benchmarks Index Score」の数値がベンチマークテストのスコアになります。

しでしんの環境下で実施した計測結果なので、みなさんと数値が全く同じになることはないです。同じ環境でも誤差が出るので、今の構成であればこれくらい出ますよくらいの数値です。

 

最後まで読んでいただきありがとうございました。

コメント

  1. koba より:

    RPi4はCPUの放熱必須ですが、放熱してのベンチマークですか?
    自分が試した環境(CPUを確り放熱)で、シングル400、マルチ1019のスコアでした。

    • しでしんしでしん より:

      コメントありがとうございます。
      CPUはしっかり放熱した状態で実施していたと思います。