Skip to content

Instantly share code, notes, and snippets.

@kissge
Last active September 10, 2022 07:25
Show Gist options
  • Save kissge/ef38f65b180c5e3cf012401cbf01a7ef to your computer and use it in GitHub Desktop.
Save kissge/ef38f65b180c5e3cf012401cbf01a7ef to your computer and use it in GitHub Desktop.

uzuki macOS

Installation: https://qiita.com/tukiyo3/items/680888014256a1eb785a#mac%E3%81%A7%E5%8B%95%E3%81%8B%E3%81%99

#17:10:30JST  ~/files/UnixBench  uzuki2
$ ./Run
make all
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
sh: 3dinfo: command not found

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

   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

16 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

16 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

16 x Execl Throughput  1 2 3

16 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

16 x File Copy 256 bufsize 500 maxblocks  1 2 3

16 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

16 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

16 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

16 x Process Creation  1 2 3

16 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

16 x Shell Scripts (1 concurrent)  1 2 3

16 x Shell Scripts (8 concurrent)  1 2 3

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

   System: uzuki2.local: Darwin
   OS: Darwin -- 20.5.0 -- Darwin Kernel Version 20.5.0: Sat May  8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate=)
   CPU 0: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 1: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 2: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 3: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 4: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 5: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 6: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 7: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 8: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 9: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 10: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 11: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 12: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 13: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 14: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   CPU 15: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (0.0 bogomips)
          MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
   17:11  up 30 mins, 2 users, load averages: 3.47 5.61 6.04; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Sun Sep 04 2022 17:11:21 - 17:39:32
16 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       40297678.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     6759.5 MWIPS (9.7 s, 7 samples)
Execl Throughput                                675.6 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        548500.5 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          157481.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       2182541.8 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1278542.3 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 190609.6 lps   (10.0 s, 7 samples)
Process Creation                               2977.7 lps   (30.2 s, 2 samples)
Shell Scripts (1 concurrent)                   4264.6 lpm   (60.1 s, 2 samples)
Shell Scripts (8 concurrent)                   2000.4 lpm   (60.0 s, 2 samples)
System Call Overhead                         790602.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   40297678.4   3453.1
Double-Precision Whetstone                       55.0       6759.5   1229.0
Execl Throughput                                 43.0        675.6    157.1
File Copy 1024 bufsize 2000 maxblocks          3960.0     548500.5   1385.1
File Copy 256 bufsize 500 maxblocks            1655.0     157481.5    951.5
File Copy 4096 bufsize 8000 maxblocks          5800.0    2182541.8   3763.0
Pipe Throughput                               12440.0    1278542.3   1027.8
Pipe-based Context Switching                   4000.0     190609.6    476.5
Process Creation                                126.0       2977.7    236.3
Shell Scripts (1 concurrent)                     42.4       4264.6   1005.8
Shell Scripts (8 concurrent)                      6.0       2000.4   3334.0
System Call Overhead                          15000.0     790602.0    527.1
                                                                   ========
System Benchmarks Index Score                                         968.0

------------------------------------------------------------------------
Benchmark Run: Sun Sep 04 2022 17:39:32 - 18:07:58
16 CPUs in system; running 16 parallel copies of tests

Dhrystone 2 using register variables      354035192.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    94436.2 MWIPS (9.9 s, 7 samples)
Execl Throughput                               5910.4 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        511841.7 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          224843.2 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       3892903.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2195166.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 631151.2 lps   (10.0 s, 7 samples)
Process Creation                              20168.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  23609.2 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   3433.2 lpm   (60.1 s, 2 samples)
System Call Overhead                        2175665.7 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  354035192.4  30337.2
Double-Precision Whetstone                       55.0      94436.2  17170.2
Execl Throughput                                 43.0       5910.4   1374.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     511841.7   1292.5
File Copy 256 bufsize 500 maxblocks            1655.0     224843.2   1358.6
File Copy 4096 bufsize 8000 maxblocks          5800.0    3892903.3   6711.9
Pipe Throughput                               12440.0    2195166.6   1764.6
Pipe-based Context Switching                   4000.0     631151.2   1577.9
Process Creation                                126.0      20168.4   1600.7
Shell Scripts (1 concurrent)                     42.4      23609.2   5568.2
Shell Scripts (8 concurrent)                      6.0       3433.2   5722.0
System Call Overhead                          15000.0    2175665.7   1450.4
                                                                   ========
System Benchmarks Index Score                                        3311.3


#20:44:49JST  ~/files/UnixBench  uzuki2  56m37s

Installation: same as macOS, without patching

#14:10:18JST  ~/files/unixbench/UnixBench  uzuki-arch 
$ ./Run
make all
make[1]: Entering directory '/home/yk/files/unixbench/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory '/home/yk/files/unixbench/UnixBench'
sh: line 1: 3dinfo: command not found
sh: line 1: runlevel: command not found

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

   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

Use of uninitialized value in sprintf at ./Run line 599.
Use of uninitialized value in sprintf at ./Run line 1508.
Use of uninitialized value in printf at ./Run line 1366.
Use of uninitialized value in printf at ./Run line 1560.

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

16 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

16 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

16 x Execl Throughput  1 2 3

16 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

16 x File Copy 256 bufsize 500 maxblocks  1 2 3

16 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

16 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

16 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

16 x Process Creation  1 2 3

16 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

16 x Shell Scripts (1 concurrent)  1 2 3

16 x Shell Scripts (8 concurrent)  1 2 3

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

   System: : GNU/Linux
   OS: GNU/Linux -- 5.19.6-arch1-1 -- #1 SMP PREEMPT_DYNAMIC Wed, 31 Aug 2022 22:09:40 +0000
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 1: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 2: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 3: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 4: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 5: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 6: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 7: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 8: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 9: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 10: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 11: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 12: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 13: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 14: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 15: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (7202.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   14:10:20 up 5 min,  3 users,  load average: 0.36, 0.44, 0.23; runlevel 

------------------------------------------------------------------------
Benchmark Run: Sat Sep 10 2022 14:10:20 - 14:38:19
16 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       65420887.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     9899.8 MWIPS (9.9 s, 7 samples)
Execl Throughput                               6593.8 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1273967.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          330024.7 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       3900980.8 KBps  (30.0 s, 2 samples)
Pipe Throughput                             3250157.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 355969.8 lps   (10.0 s, 7 samples)
Process Creation                               2073.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   1505.2 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   3803.8 lpm   (60.0 s, 2 samples)
System Call Overhead                        2828865.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   65420887.4   5605.9
Double-Precision Whetstone                       55.0       9899.8   1800.0
Execl Throughput                                 43.0       6593.8   1533.4
File Copy 1024 bufsize 2000 maxblocks          3960.0    1273967.3   3217.1
File Copy 256 bufsize 500 maxblocks            1655.0     330024.7   1994.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    3900980.8   6725.8
Pipe Throughput                               12440.0    3250157.5   2612.7
Pipe-based Context Switching                   4000.0     355969.8    889.9
Process Creation                                126.0       2073.5    164.6
Shell Scripts (1 concurrent)                     42.4       1505.2    355.0
Shell Scripts (8 concurrent)                      6.0       3803.8   6339.6
System Call Overhead                          15000.0    2828865.3   1885.9
                                                                   ========
System Benchmarks Index Score                                        1790.3

------------------------------------------------------------------------
Benchmark Run: Sat Sep 10 2022 14:38:19 - 15:06:20
16 CPUs in system; running 16 parallel copies of tests

Dhrystone 2 using register variables      722552904.5 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                   133439.1 MWIPS (10.0 s, 7 samples)
Execl Throughput                              60385.0 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       2160283.7 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          525096.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       6833901.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                            31009611.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                3874575.2 lps   (10.0 s, 7 samples)
Process Creation                             128272.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  57438.9 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   7951.7 lpm   (60.1 s, 2 samples)
System Call Overhead                       11038204.1 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  722552904.5  61915.4
Double-Precision Whetstone                       55.0     133439.1  24261.7
Execl Throughput                                 43.0      60385.0  14043.0
File Copy 1024 bufsize 2000 maxblocks          3960.0    2160283.7   5455.3
File Copy 256 bufsize 500 maxblocks            1655.0     525096.5   3172.8
File Copy 4096 bufsize 8000 maxblocks          5800.0    6833901.5  11782.6
Pipe Throughput                               12440.0   31009611.0  24927.3
Pipe-based Context Switching                   4000.0    3874575.2   9686.4
Process Creation                                126.0     128272.5  10180.4
Shell Scripts (1 concurrent)                     42.4      57438.9  13546.9
Shell Scripts (8 concurrent)                      6.0       7951.7  13252.8
System Call Overhead                          15000.0   11038204.1   7358.8
                                                                   ========
System Benchmarks Index Score                                       12457.7


#16:23:56JST  ~/files/unixbench/UnixBench  uzuki-arch  56m1s 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment