Skip to content

Instantly share code, notes, and snippets.

@AntouanK
Last active July 29, 2017 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntouanK/1ecec02e08b90be54463d4ad6f0efcab to your computer and use it in GitHub Desktop.
Save AntouanK/1ecec02e08b90be54463d4ad6f0efcab to your computer and use it in GitHub Desktop.

For reference, my CPU:

$ lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              16
On-line CPU(s) list: 0-15
Thread(s) per core:  2
Core(s) per socket:  8
Socket(s):           1
NUMA node(s):        1
Vendor ID:           AuthenticAMD
CPU family:          23
Model:               1
Model name:          AMD Ryzen 7 1700 Eight-Core Processor
Stepping:            1
CPU MHz:             1550.000
CPU max MHz:         3300.0000
CPU min MHz:         1550.0000
BogoMIPS:            6590.78
Virtualization:      AMD-V
L1d cache:           32K
L1i cache:           64K
L2 cache:            512K
L3 cache:            8192K
NUMA node0 CPU(s):   0-15

BASELINE: elm-make 0.18

 Performance counter stats for 'elm-make':

      43788.567368      task-clock:u (msec)       #    7.744 CPUs utilized          
                 0      context-switches:u        #    0.000 K/sec                  
                 0      cpu-migrations:u          #    0.000 K/sec                  
            26,875      page-faults:u             #    0.614 K/sec                  
    82,095,064,062      cycles:u                  #    1.875 GHz                      (82.90%)
     4,622,063,759      stalled-cycles-frontend:u #    5.63% frontend cycles idle     (83.25%)
     7,759,104,549      stalled-cycles-backend:u  #    9.45% backend cycles idle      (83.46%)
    43,933,376,036      instructions:u            #    0.54  insn per cycle         
                                                  #    0.18  stalled cycles per insn  (83.52%)
     9,103,847,194      branches:u                #  207.905 M/sec                    (83.47%)
       155,823,980      branch-misses:u           #    1.71% of all branches          (83.48%)

       5.654525137 seconds time elapsed

BASELINE: elm-make 0.18 with sysconfcpus -n 1

 Performance counter stats for 'sysconfcpus -n 1 elm-make':

       2999.699852      task-clock:u (msec)       #    0.982 CPUs utilized          
                 0      context-switches:u        #    0.000 K/sec                  
                 0      cpu-migrations:u          #    0.000 K/sec                  
            26,906      page-faults:u             #    0.009 M/sec                  
     9,373,832,381      cycles:u                  #    3.125 GHz                      (83.34%)
     2,399,275,910      stalled-cycles-frontend:u #   25.60% frontend cycles idle     (83.49%)
     2,065,096,909      stalled-cycles-backend:u  #   22.03% backend cycles idle      (83.41%)
    15,995,671,547      instructions:u            #    1.71  insn per cycle         
                                                  #    0.15  stalled cycles per insn  (83.31%)
     2,907,906,165      branches:u                #  969.399 M/sec                    (83.34%)
        76,719,187      branch-misses:u           #    2.64% of all branches          (83.32%)

       3.055779657 seconds time elapsed

"-with-rtsopts=-qg"

 Performance counter stats for '/home/antouank/_REPOS_/elm/Elm-Platform/0.18/elm-make/dist/dist-sandbox-aff3f82/build/elm-make/elm-make':

       3202.025630      task-clock:u (msec)       #    0.986 CPUs utilized          
                 0      context-switches:u        #    0.000 K/sec                  
                 0      cpu-migrations:u          #    0.000 K/sec                  
            14,314      page-faults:u             #    0.004 M/sec                  
     8,582,359,814      cycles:u                  #    2.680 GHz                      (83.28%)
     2,368,201,034      stalled-cycles-frontend:u #   27.59% frontend cycles idle     (83.16%)
     1,927,540,143      stalled-cycles-backend:u  #   22.46% backend cycles idle      (83.57%)
    14,869,247,403      instructions:u            #    1.73  insn per cycle         
                                                  #    0.16  stalled cycles per insn  (83.93%)
     2,709,665,043      branches:u                #  846.235 M/sec                    (84.22%)
        67,225,369      branch-misses:u           #    2.48% of all branches          (83.11%)

       3.246875077 seconds time elapsed

"-with-rtsopts=-qg" with sysconfcpus -n 1

 Performance counter stats for 'sysconfcpus -n 1 /home/antouank/_REPOS_/elm/Elm-Platform/0.18/elm-make/dist/dist-sandbox-aff3f82/build/elm-make/elm-make':

       2722.145007      task-clock:u (msec)       #    0.975 CPUs utilized          
                 0      context-switches:u        #    0.000 K/sec                  
                 0      cpu-migrations:u          #    0.000 K/sec                  
            15,426      page-faults:u             #    0.006 M/sec                  
     8,367,594,124      cycles:u                  #    3.074 GHz                      (83.20%)
     2,266,529,891      stalled-cycles-frontend:u #   27.09% frontend cycles idle     (83.52%)
     1,882,866,864      stalled-cycles-backend:u  #   22.50% backend cycles idle      (83.19%)
    14,554,941,038      instructions:u            #    1.74  insn per cycle         
                                                  #    0.16  stalled cycles per insn  (83.38%)
     2,648,612,674      branches:u                #  972.987 M/sec                    (83.42%)
        66,044,098      branch-misses:u           #    2.49% of all branches          (83.42%)

       2.792883364 seconds time elapsed

"-with-rtsopts=-A16M -qg"

 Performance counter stats for '/home/antouank/_REPOS_/elm/Elm-Platform/0.18/elm-make/dist/dist-sandbox-aff3f82/build/elm-make/elm-make':

       3328.152270      task-clock:u (msec)       #    0.988 CPUs utilized          
                 0      context-switches:u        #    0.000 K/sec                  
                 0      cpu-migrations:u          #    0.000 K/sec                  
            34,119      page-faults:u             #    0.010 M/sec                  
     8,808,636,858      cycles:u                  #    2.647 GHz                      (83.14%)
     1,969,332,250      stalled-cycles-frontend:u #   22.36% frontend cycles idle     (83.31%)
     1,615,213,495      stalled-cycles-backend:u  #   18.34% backend cycles idle      (83.43%)
    12,462,491,026      instructions:u            #    1.41  insn per cycle         
                                                  #    0.16  stalled cycles per insn  (83.59%)
     2,279,594,434      branches:u                #  684.943 M/sec                    (83.41%)
        51,724,772      branch-misses:u           #    2.27% of all branches          (84.06%)

       3.368544074 seconds time elapsed

"-with-rtsopts=-A32M -qg"

 Performance counter stats for '/home/antouank/_REPOS_/elm/Elm-Platform/0.18/elm-make/dist/dist-sandbox-aff3f82/build/elm-make/elm-make':

       3307.547272      task-clock:u (msec)       #    0.986 CPUs utilized          
                 0      context-switches:u        #    0.000 K/sec                  
                 0      cpu-migrations:u          #    0.000 K/sec                  
            62,178      page-faults:u             #    0.019 M/sec                  
     8,934,550,532      cycles:u                  #    2.701 GHz                      (83.29%)
     1,885,413,110      stalled-cycles-frontend:u #   21.10% frontend cycles idle     (83.64%)
     1,571,368,217      stalled-cycles-backend:u  #   17.59% backend cycles idle      (83.67%)
    12,104,904,265      instructions:u            #    1.35  insn per cycle         
                                                  #    0.16  stalled cycles per insn  (83.18%)
     2,209,627,869      branches:u                #  668.056 M/sec                    (83.33%)
        49,860,232      branch-misses:u           #    2.26% of all branches          (83.57%)

       3.355840350 seconds time elapsed

"-with-rtsopts=-A64M -qg"

 Performance counter stats for '/home/antouank/_REPOS_/elm/Elm-Platform/0.18/elm-make/dist/dist-sandbox-aff3f82/build/elm-make/elm-make':

       3294.431359      task-clock:u (msec)       #    0.981 CPUs utilized          
                 0      context-switches:u        #    0.000 K/sec                  
                 0      cpu-migrations:u          #    0.000 K/sec                  
           110,040      page-faults:u             #    0.033 M/sec                  
     8,872,178,322      cycles:u                  #    2.693 GHz                      (83.59%)
     1,806,443,928      stalled-cycles-frontend:u #   20.36% frontend cycles idle     (83.21%)
     1,530,354,956      stalled-cycles-backend:u  #   17.25% backend cycles idle      (83.77%)
    11,737,385,689      instructions:u            #    1.32  insn per cycle         
                                                  #    0.15  stalled cycles per insn  (84.08%)
     2,180,537,337      branches:u                #  661.886 M/sec                    (83.31%)
        49,768,001      branch-misses:u           #    2.28% of all branches          (83.29%)

       3.359285797 seconds time elapsed

"-with-rtsopts=-A16M -qb0"

 Performance counter stats for '/home/antouank/_REPOS_/elm/Elm-Platform/0.18/elm-make/dist/dist-sandbox-aff3f82/build/elm-make/elm-make':

      23073.562105      task-clock:u (msec)       #    5.786 CPUs utilized          
                 0      context-switches:u        #    0.000 K/sec                  
                 0      cpu-migrations:u          #    0.000 K/sec                  
            38,424      page-faults:u             #    0.002 M/sec                  
    32,913,598,198      cycles:u                  #    1.426 GHz                      (83.41%)
     2,766,527,456      stalled-cycles-frontend:u #    8.41% frontend cycles idle     (83.28%)
     5,945,408,421      stalled-cycles-backend:u  #   18.06% backend cycles idle      (83.21%)
    30,612,789,703      instructions:u            #    0.93  insn per cycle         
                                                  #    0.19  stalled cycles per insn  (83.18%)
     7,192,909,531      branches:u                #  311.738 M/sec                    (83.52%)
       118,408,909      branch-misses:u           #    1.65% of all branches          (83.58%)

       3.987949247 seconds time elapsed

"-with-rtsopts=-A64M -qb0"

 Performance counter stats for '/home/antouank/_REPOS_/elm/Elm-Platform/0.18/elm-make/dist/dist-sandbox-aff3f82/build/elm-make/elm-make':

      20497.294859      task-clock:u (msec)       #    5.209 CPUs utilized          
                 0      context-switches:u        #    0.000 K/sec                  
                 0      cpu-migrations:u          #    0.000 K/sec                  
           110,007      page-faults:u             #    0.005 M/sec                  
    33,050,938,389      cycles:u                  #    1.612 GHz                      (83.42%)
     2,447,728,679      stalled-cycles-frontend:u #    7.41% frontend cycles idle     (83.33%)
     6,108,146,375      stalled-cycles-backend:u  #   18.48% backend cycles idle      (83.39%)
    31,341,483,439      instructions:u            #    0.95  insn per cycle         
                                                  #    0.19  stalled cycles per insn  (83.43%)
     7,327,060,063      branches:u                #  357.465 M/sec                    (83.21%)
       111,004,818      branch-misses:u           #    1.51% of all branches          (83.41%)

       3.934924097 seconds time elapsed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment