gcc -o pgms/arithoh -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -Darithoh src/arith.c 
gcc -o pgms/register -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -Ddatum='register int' src/arith.c 
gcc -o pgms/short -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -Ddatum=short src/arith.c 
gcc -o pgms/int -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -Ddatum=int src/arith.c 
gcc -o pgms/long -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -Ddatum=long src/arith.c 
gcc -o pgms/float -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -Ddatum=float src/arith.c 
gcc -o pgms/double -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -Ddatum=double src/arith.c 
gcc -o pgms/hanoi -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME src/hanoi.c 
gcc -o pgms/syscall -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME src/syscall.c 
gcc -o pgms/context1 -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME src/context1.c 
gcc -o pgms/pipe -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME src/pipe.c 
gcc -o pgms/spawn -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME src/spawn.c 
gcc -o pgms/execl -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME src/execl.c 
gcc -o pgms/dhry2 -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -DHZ= ./src/dhry_1.c ./src/dhry_2.c
gcc -o pgms/dhry2reg -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -DHZ= -DREG=register ./src/dhry_1.c ./src/dhry_2.c
gcc -o pgms/looper -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME src/looper.c 
gcc -o pgms/fstime -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME src/fstime.c 
gcc -o pgms/whetstone-double -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -DDP -DGTODay -DUNIXBENCH src/whets.c -lm
make all
make[1]: Entering directory '/home/lleung/byte-unixbench/UnixBench'
make distr
make[2]: Entering directory '/home/lleung/byte-unixbench/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[2]: Leaving directory '/home/lleung/byte-unixbench/UnixBench'
make programs
make[2]: Entering directory '/home/lleung/byte-unixbench/UnixBench'
make[2]: Nothing to be done for 'programs'.
make[2]: Leaving directory '/home/lleung/byte-unixbench/UnixBench'
make[1]: Leaving directory '/home/lleung/byte-unixbench/UnixBench'

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

   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 directories for:
      * File I/O tests (named fs***) = /home/lleung/byte-unixbench/UnixBench/tmp
      * Results                      = /home/lleung/byte-unixbench/UnixBench/results
------------------------------------------------------------------------------


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: test-2: GNU/Linux
   OS: GNU/Linux -- 4.18.0-425.3.1.el8.x86_64 -- #1 SMP Wed Nov 9 20:13:27 UTC 2022
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel Xeon Processor (Icelake) (4589.2 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 1: Intel Xeon Processor (Icelake) (4589.2 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 2: Intel Xeon Processor (Icelake) (4589.2 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 3: Intel Xeon Processor (Icelake) (4589.2 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   10:20:47 up 8 min,  1 user,  load average: 0.50, 0.16, 0.07; runlevel 2022-12-22

------------------------------------------------------------------------
Benchmark Run: Thu Dec 22 2022 10:20:47 - 10:48:39
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       46404955.6 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     6846.2 MWIPS (9.0 s, 7 samples)
Execl Throughput                               5191.6 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1368119.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          366531.3 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       3953922.7 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2017175.2 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  73604.1 lps   (10.0 s, 7 samples)
Process Creation                               9922.0 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   9398.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   2738.8 lpm   (60.0 s, 2 samples)
System Call Overhead                        2468780.5 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   46404955.6   3976.4
Double-Precision Whetstone                       55.0       6846.2   1244.8
Execl Throughput                                 43.0       5191.6   1207.4
File Copy 1024 bufsize 2000 maxblocks          3960.0    1368119.0   3454.8
File Copy 256 bufsize 500 maxblocks            1655.0     366531.3   2214.7
File Copy 4096 bufsize 8000 maxblocks          5800.0    3953922.7   6817.1
Pipe Throughput                               12440.0    2017175.2   1621.5
Pipe-based Context Switching                   4000.0      73604.1    184.0
Process Creation                                126.0       9922.0    787.5
Shell Scripts (1 concurrent)                     42.4       9398.0   2216.5
Shell Scripts (8 concurrent)                      6.0       2738.8   4564.6
System Call Overhead                          15000.0    2468780.5   1645.9
                                                                   ========
System Benchmarks Index Score                                        1807.9

------------------------------------------------------------------------
Benchmark Run: Thu Dec 22 2022 10:48:39 - 11:16:32
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables      187255293.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    27351.1 MWIPS (9.0 s, 7 samples)
Execl Throughput                              12607.0 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        941614.1 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          246938.3 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       2892272.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                             8031144.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 670249.3 lps   (10.0 s, 7 samples)
Process Creation                              23367.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  20691.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   3153.1 lpm   (60.0 s, 2 samples)
System Call Overhead                        5475136.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  187255293.1  16045.9
Double-Precision Whetstone                       55.0      27351.1   4972.9
Execl Throughput                                 43.0      12607.0   2931.9
File Copy 1024 bufsize 2000 maxblocks          3960.0     941614.1   2377.8
File Copy 256 bufsize 500 maxblocks            1655.0     246938.3   1492.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    2892272.3   4986.7
Pipe Throughput                               12440.0    8031144.5   6455.9
Pipe-based Context Switching                   4000.0     670249.3   1675.6
Process Creation                                126.0      23367.1   1854.5
Shell Scripts (1 concurrent)                     42.4      20691.8   4880.1
Shell Scripts (8 concurrent)                      6.0       3153.1   5255.1
System Call Overhead                          15000.0    5475136.8   3650.1
                                                                   ========
System Benchmarks Index Score                                        3751.6