Raspberry Pi 備忘録 / Mbedもあるよ!

Raspberry Pi であれこれやった事の記録

RPI4 と Jetson nano ベンチマーク

RPI4 は 4G RAM

Unix bench

インストール

$ wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/byte-unixbench/UnixBench5.1.3.tgz
$ tar xvzf UnixBench5.1.3.tgz
$ cd UnixBench/
$ make -j 4

実行

$ ./Run

RPI 4

Raspberry pi 4 のベンチマーク結果

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

   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

Wide character in print at ./Run line 1511.
Wide character in printf at ./Run line 1542.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.

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
Wide character in printf at ./Run line 1484.

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
Wide character in printf at ./Run line 1484.

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

   System: raspberrypi: GNU/Linux
   OS: GNU/Linux -- 4.19.50-v7l+ -- #895 SMP Thu Jun 20 16:03:42 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)
          
   11:49:55 up 7 min,  2 users,  load average: 0.26, 0.12, 0.05; runlevel 5

------------------------------------------------------------------------
Benchmark Run: 水  731 2019 11:49:55 - 12:17:48
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       10149711.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2395.4 MWIPS (9.6 s, 7 samples)
Execl Throughput                                903.9 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        114368.4 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           31691.2 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        315794.9 KBps  (30.0 s, 2 samples)
Pipe Throughput                              160713.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  43675.5 lps   (10.0 s, 7 samples)
Process Creation                               1881.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2418.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    733.0 lpm   (60.0 s, 2 samples)
System Call Overhead                         496298.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   10149711.1    869.7
Double-Precision Whetstone                       55.0       2395.4    435.5
Execl Throughput                                 43.0        903.9    210.2
File Copy 1024 bufsize 2000 maxblocks          3960.0     114368.4    288.8
File Copy 256 bufsize 500 maxblocks            1655.0      31691.2    191.5
File Copy 4096 bufsize 8000 maxblocks          5800.0     315794.9    544.5
Pipe Throughput                               12440.0     160713.9    129.2
Pipe-based Context Switching                   4000.0      43675.5    109.2
Process Creation                                126.0       1881.9    149.4
Shell Scripts (1 concurrent)                     42.4       2418.8    570.5
Shell Scripts (8 concurrent)                      6.0        733.0   1221.7
System Call Overhead                          15000.0     496298.8    330.9
                                                                   ========
System Benchmarks Index Score                                         320.3

------------------------------------------------------------------------
Benchmark Run: 水  731 2019 12:17:48 - 12:45:43
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       40553830.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     9579.6 MWIPS (9.6 s, 7 samples)
Execl Throughput                               2702.9 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        213996.8 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           58113.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        616020.2 KBps  (30.0 s, 2 samples)
Pipe Throughput                              613981.1 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 192241.9 lps   (10.0 s, 7 samples)
Process Creation                               4747.6 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5828.7 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    798.2 lpm   (60.2 s, 2 samples)
System Call Overhead                        1863799.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   40553830.8   3475.0
Double-Precision Whetstone                       55.0       9579.6   1741.8
Execl Throughput                                 43.0       2702.9    628.6
File Copy 1024 bufsize 2000 maxblocks          3960.0     213996.8    540.4
File Copy 256 bufsize 500 maxblocks            1655.0      58113.9    351.1
File Copy 4096 bufsize 8000 maxblocks          5800.0     616020.2   1062.1
Pipe Throughput                               12440.0     613981.1    493.6
Pipe-based Context Switching                   4000.0     192241.9    480.6
Process Creation                                126.0       4747.6    376.8
Shell Scripts (1 concurrent)                     42.4       5828.7   1374.7
Shell Scripts (8 concurrent)                      6.0        798.2   1330.4
System Call Overhead                          15000.0    1863799.0   1242.5
                                                                   ========
System Benchmarks Index Score                                         856.4

Jetson nano

Jetson nano のベンチマーク結果

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

   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

Wide character in print at ./Run line 1511.
Wide character in printf at ./Run line 1542.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.

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
Wide character in printf at ./Run line 1484.

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
Wide character in printf at ./Run line 1484.

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

   System: omasa-jetson-nano: GNU/Linux
   OS: GNU/Linux -- 4.9.140-tegra -- #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019
   Machine: aarch64 (aarch64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: ARMv8 Processor rev 1 (v8l) (0.0 bogomips)
          
   CPU 1: ARMv8 Processor rev 1 (v8l) (0.0 bogomips)
          
   CPU 2: ARMv8 Processor rev 1 (v8l) (0.0 bogomips)
          
   CPU 3: ARMv8 Processor rev 1 (v8l) (0.0 bogomips)
          
   13:00:41 up 1 min,  1 user,  load average: 0.87, 0.29, 0.10; runlevel 5

------------------------------------------------------------------------
Benchmark Run: 水  731 2019 13:00:41 - 13:28:39
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       12361654.2 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1466.0 MWIPS (9.9 s, 7 samples)
Execl Throughput                               1119.3 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        177918.8 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           50193.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        512846.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                              310796.1 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  55926.2 lps   (10.0 s, 7 samples)
Process Creation                               4309.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3574.2 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1076.7 lpm   (60.0 s, 2 samples)
System Call Overhead                         344613.1 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   12361654.2   1059.3
Double-Precision Whetstone                       55.0       1466.0    266.5
Execl Throughput                                 43.0       1119.3    260.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     177918.8    449.3
File Copy 256 bufsize 500 maxblocks            1655.0      50193.5    303.3
File Copy 4096 bufsize 8000 maxblocks          5800.0     512846.0    884.2
Pipe Throughput                               12440.0     310796.1    249.8
Pipe-based Context Switching                   4000.0      55926.2    139.8
Process Creation                                126.0       4309.9    342.1
Shell Scripts (1 concurrent)                     42.4       3574.2    843.0
Shell Scripts (8 concurrent)                      6.0       1076.7   1794.4
System Call Overhead                          15000.0     344613.1    229.7
                                                                   ========
System Benchmarks Index Score                                         427.0

------------------------------------------------------------------------
Benchmark Run: 水  731 2019 13:28:39 - 13:56:38
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       49457389.5 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     5863.2 MWIPS (9.9 s, 7 samples)
Execl Throughput                               4133.8 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        279995.5 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           72410.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        831965.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1264305.1 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 157316.4 lps   (10.0 s, 7 samples)
Process Creation                              13291.2 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   8405.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1189.7 lpm   (60.1 s, 2 samples)
System Call Overhead                        1327968.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   49457389.5   4238.0
Double-Precision Whetstone                       55.0       5863.2   1066.0
Execl Throughput                                 43.0       4133.8    961.4
File Copy 1024 bufsize 2000 maxblocks          3960.0     279995.5    707.1
File Copy 256 bufsize 500 maxblocks            1655.0      72410.0    437.5
File Copy 4096 bufsize 8000 maxblocks          5800.0     831965.1   1434.4
Pipe Throughput                               12440.0    1264305.1   1016.3
Pipe-based Context Switching                   4000.0     157316.4    393.3
Process Creation                                126.0      13291.2   1054.9
Shell Scripts (1 concurrent)                     42.4       8405.8   1982.5
Shell Scripts (8 concurrent)                      6.0       1189.7   1982.9
System Call Overhead                          15000.0    1327968.8    885.3
                                                                   ========
System Benchmarks Index Score                                        1090.5