{"id":1076,"date":"2024-01-29T11:24:18","date_gmt":"2024-01-29T11:24:18","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1076"},"modified":"2024-01-30T01:06:42","modified_gmt":"2024-01-30T01:06:42","slug":"perl-benchmark","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/perl-benchmark\/","title":{"rendered":"perl-benchmark"},"content":{"rendered":"\n<p>The perl benchmark suite. This is a single-threaded test with two subtests listed. The second test is much more interrupt driven than the first.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" src=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-85.png\" alt=\"\" class=\"wp-image-1103\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-85.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-85-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-85-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile also shows differences with the first benchmark having a high retirement rate and the second having a high frontend stall rate.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" src=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-122.png\" alt=\"\" class=\"wp-image-1105\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-122.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-122-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-122-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics are a composite of two workloads. Overall floating point is low as is L2 access.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              393.151\non_cpu               0.057          # 0.91 \/ 16 cores\nutime                281.243\nstime                77.235\nnvcsw                146367         # 95.13%\nnivcsw               7498           # 4.87%\ninblock              0              # 0.00\/sec\nonblock              14528          # 36.95\/sec\ncpu-clock            354854029072   # 354.854 seconds\ntask-clock           354867210755   # 354.867 seconds\npage faults          18496906       # 52123.458\/sec\ncontext switches     83613          # 235.618\/sec\ncpu migrations       2298           # 6.476\/sec\nmajor page faults    3              # 0.008\/sec\nminor page faults    18496903       # 52123.449\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             691501746318   # 186.096 branches per 1000 inst\nbranch misses        13327756183    # 1.93% branch miss\nconditional          484691666677   # 130.440 conditional branches per 1000 inst\nindirect             44447829490    # 11.962 indirect branches per 1000 inst\ncpu-cycles           1076880134024  # 0.18 GHz\ninstructions         3057392583806  # 2.84 IPC\nslots                2566636010466  #\nretiring             1188139623335  # 46.3% (46.3%)\n-- ucode             4079568996     #     0.2%\n-- fastpath          1184060054339  #    46.1%\nfrontend             975034079341   # 38.0% (38.0%)\n-- latency           728146780536   #    28.4%\n-- bandwidth         246887298805   #     9.6%\nbackend              296796004508   # 11.6% (11.6%) low\n-- cpu               43356948714    #     1.7%\n-- memory            253439055794   #     9.9%\nspeculation          106212861083   #  4.1% ( 4.1%)\n-- branch mispredict 103879449591   #     4.0%\n-- pipeline restart  2333411492     #     0.1%\nsmt-contention       452600354      #  0.0% ( 0.0%)\ncpu-cycles           1033369601417  # 0.18 GHz\ninstructions         3141334841769  # 3.04 IPC high\ninstructions         1187298261309  # 20.856 l2 access per 1000 inst\nl2 hit from l1       23345989103    # 10.43% l2 miss\nl2 miss from l1      1847949041     #\nl2 hit from l2 pf    681645278      #\nl3 hit from l2 pf    632360154      #\nl3 miss from l2 pf   102782631      #\ninstructions         1207708553181  # 3.234 float per 1000 inst\nfloat 512            23791          # 0.000 AVX-512 per 1000 inst\nfloat 256            500            # 0.000 AVX-256 per 1000 inst\nfloat 128            3905597522     # 3.234 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\n<\/code><\/pre>\n\n\n\n<p>Intel metrics<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              416.979\non_cpu               0.057          # 0.91 \/ 16 cores\nutime                319.135\nstime                60.147\nnvcsw                214839         # 93.50%\nnivcsw               14944          # 6.50%\ninblock              448            # 1.07\/sec\nonblock              3272           # 7.85\/sec\ncpu-clock            364426344499   # 364.426 seconds\ntask-clock           365307251906   # 365.307 seconds\npage faults          27145131       # 74307.671\/sec\ncontext switches     125281         # 342.947\/sec\ncpu migrations       2929           # 8.018\/sec\nmajor page faults    4              # 0.011\/sec\nminor page faults    27145127       # 74307.660\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             618685659451   # 183.140 branches per 1000 inst\nbranch misses        5287747462     # 0.85% branch miss\nconditional          618689074587   # 183.142 conditional branches per 1000 inst\nindirect             38653208080    # 11.442 indirect branches per 1000 inst\nslots                7018106393480  #\nretiring             3226244304670  # 46.0% (46.0%)\n-- ucode             171221187428   #     2.4%\n-- fastpath          3055023117242  #    43.5%\nfrontend             2262702074842  # 32.2% (32.2%)\n-- latency           1089959647773  #    15.5%\n-- bandwidth         1172742427069  #    16.7%\nbackend              799287594536   # 11.4% (11.4%) low\n-- cpu               538113600915   #     7.7%\n-- memory            261173993621   #     3.7%\nspeculation          745634247889   # 10.6% (10.6%) high\n-- branch mispredict 670876346091   #     9.6%\n-- pipeline restart  74757901798    #     1.1%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           1173997874459  # 0.17 GHz\ninstructions         3397452090713  # 2.89 IPC\nl2 access            76989334669    # 22.683 l2 access per 1000 inst\nl2 miss              13542478107    # 17.59% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process overview has 70,000+ instances of perl<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>73633 processes\n\t73226 perl                   203.83    21.64\n\t 68 clinfo                  17.21     5.32\n\t 38 vulkaninfo               0.96     1.15\n\t  4 vulkani:disk$0           0.10     0.12\n\t  6 php                      0.10     0.09\n\t  6 glxinfo:gdrv0            0.09     0.07\n\t  6 glxinfo:gl0              0.09     0.07\n\t  6 clang                    0.07     0.05\n\t  2 llvmpipe-0               0.05     0.06\n\t  2 llvmpipe-1               0.05     0.06\n\t  2 llvmpipe-10              0.05     0.06\n\t  2 llvmpipe-11              0.05     0.06\n\t  2 llvmpipe-12              0.05     0.06\n\t  2 llvmpipe-13              0.05     0.06\n\t  2 llvmpipe-14              0.05     0.06\n\t  2 llvmpipe-15              0.05     0.06\n\t  2 llvmpipe-2               0.05     0.06\n\t  2 llvmpipe-3               0.05     0.06\n\t  2 llvmpipe-4               0.05     0.06\n\t  2 llvmpipe-5               0.05     0.06\n\t  2 llvmpipe-6               0.05     0.06\n\t  2 llvmpipe-7               0.05     0.06\n\t  2 llvmpipe-8               0.05     0.06\n\t  2 llvmpipe-9               0.05     0.06\n\t  2 glxinfo                  0.05     0.03\n\t  2 glxinfo:cs0              0.05     0.03\n\t  2 glxinfo:disk$0           0.05     0.03\n\t  2 glxinfo:sh0              0.05     0.03\n\t  2 glxinfo:shlo0            0.05     0.03\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.00     0.02\n\t  1 ps                       0.00     0.01\n\t101 sh                       0.00     0.00\n\t 14 uname                    0.00     0.00\n\t 12 gcc                      0.00     0.00\n\t 10 gsettings                0.00     0.00\n\t  8 stat                     0.00     0.00\n\t  8 systemd-detect-          0.00     0.00\n\t  6 cat                      0.00     0.00\n\t  6 cp                       0.00     0.00\n\t  6 llvm-link                0.00     0.00\n\t  6 perl-benchmark           0.00     0.00\n\t  6 rm                       0.00     0.00\n\t  6 uptime                   0.00     0.00\n\t  5 phoronix-test-s          0.00     0.00\n\t  4 gmain                    0.00     0.00\n\t  2 dconf worker             0.00     0.00\n\t  2 lscpu                    0.00     0.00\n\t  2 which                    0.00     0.00\n\t  2 xset                     0.00     0.00\n\t  1 cc                       0.00     0.00\n\t  1 date                     0.00     0.00\n\t  1 dirname                  0.00     0.00\n\t  1 dmesg                    0.00     0.00\n\t  1 dmidecode                0.00     0.00\n\t  1 grep                     0.00     0.00\n\t  1 ifconfig                 0.00     0.00\n\t  1 ip                       0.00     0.00\n\t  1 lsmod                    0.00     0.00\n\t  1 mktemp                   0.00     0.00\n\t  1 qdbus                    0.00     0.00\n\t  1 readlink                 0.00     0.00\n\t  1 realpath                 0.00     0.00\n\t  1 sed                      0.00     0.00\n\t  1 sort                     0.00     0.00\n\t  1 stty                     0.00     0.00\n\t  1 systemctl                0.00     0.00\n\t  1 template.sh              0.00     0.00\n\t  1 wc                       0.00     0.00\n\t  1 xrandr                   0.00     0.00\n0 processes running\n47 maximum processes\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The perl benchmark suite. This is a single-threaded test with two subtests listed. The second test is much more interrupt driven than the first. Topdown profile also shows differences with the first benchmark having a high retirement rate and the <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/perl-benchmark\/\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":58,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1076","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/comments?post=1076"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1076\/revisions"}],"predecessor-version":[{"id":1106,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1076\/revisions\/1106"}],"up":[{"embeddable":true,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/58"}],"wp:attachment":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/media?parent=1076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}