{"id":443,"date":"2024-01-13T00:41:09","date_gmt":"2024-01-13T00:41:09","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=443"},"modified":"2024-01-13T03:13:39","modified_gmt":"2024-01-13T03:13:39","slug":"encode-mp3","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/encode-mp3\/","title":{"rendered":"encode-mp3"},"content":{"rendered":"\n<p>Encode-mp3 is one of several quick-running encode benchmarks. These are quick-running high-IPC programs with just a two threads runnable at a time and an overall runtime of barely 10 seconds.<\/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-4.png\" alt=\"\" class=\"wp-image-468\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-4.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-4-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-4-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown shows a quick running benchmark with high retirement 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-42.png\" alt=\"\" class=\"wp-image-469\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-42.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-42-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-42-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics shows very low on cpu time and effectively a single-threaded benchmark.  There is floating point code without as many branches.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              33.779\non_cpu               0.036          # 0.57 \/ 16 cores\nutime                18.466\nstime                0.823\nnvcsw                2482           # 88.55%\nnivcsw               321            # 11.45%\ninblock              0              # 0.00\/sec\nonblock              12672          # 375.15\/sec\ncpu-clock            19301020946    # 19.301 seconds\ntask-clock           19303976750    # 19.304 seconds\npage faults          152735         # 7912.100\/sec\ncontext switches     2799           # 144.996\/sec\ncpu migrations       256            # 13.262\/sec\nmajor page faults    2              # 0.104\/sec\nminor page faults    152733         # 7911.997\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             23522917061    # 94.639 branches per 1000 inst\nbranch misses        712436909      # 3.03% branch miss\nconditional          20486508829    # 82.423 conditional branches per 1000 inst\nindirect             187548801      # 0.755 indirect branches per 1000 inst\ncpu-cycles           82476901747    # 0.16 GHz\ninstructions         246917957286   # 2.99 IPC\nslots                167245156380   #\nretiring             82289457515    # 49.2% (49.2%)\n-- ucode             33116883       #     0.0%\n-- fastpath          82256340632    #    49.2%\nfrontend             27123141375    # 16.2% (16.2%)\n-- latency           16763183424    #    10.0%\n-- bandwidth         10359957951    #     6.2%\nbackend              39585123505    # 23.7% (23.7%)\n-- cpu               25160969294    #    15.0%\n-- memory            14424154211    #     8.6%\nspeculation          18201692176    # 10.9% (10.9%)\n-- branch mispredict 18155063485    #    10.9%\n-- pipeline restart  46628691       #     0.0%\nsmt-contention       45471652       #  0.0% ( 0.0%)\ncpu-cycles           82456469460    # 0.15 GHz\ninstructions         246330838196   # 2.99 IPC\ninstructions         82941767929    # 4.075 l2 access per 1000 inst\nl2 hit from l1       273761018      # 6.95% l2 miss\nl2 miss from l1      13761495       #\nl2 hit from l2 pf    54478813       #\nl3 hit from l2 pf    4628577        #\nl3 miss from l2 pf   5090747        #\ninstructions         82660149687    # 267.806 float per 1000 inst\nfloat 512            48             # 0.000 AVX-512 per 1000 inst\nfloat 256            620            # 0.000 AVX-256 per 1000 inst\nfloat 128            22136902767    # 267.806 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              37.303\non_cpu               0.039          # 0.62 \/ 16 cores\nutime                22.777\nstime                0.423\nnvcsw                2383           # 91.87%\nnivcsw               211            # 8.13%\ninblock              1984           # 53.19\/sec\nonblock              1424           # 38.17\/sec\ncpu-clock            23197970753    # 23.198 seconds\ntask-clock           23200855061    # 23.201 seconds\npage faults          137258         # 5916.075\/sec\ncontext switches     2610           # 112.496\/sec\ncpu migrations       263            # 11.336\/sec\nmajor page faults    12             # 0.517\/sec\nminor page faults    137246         # 5915.558\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             23206636870    # 93.834 branches per 1000 inst\nbranch misses        814296140      # 3.51% branch miss\nconditional          23206648806    # 93.834 conditional branches per 1000 inst\nindirect             194487089      # 0.786 indirect branches per 1000 inst\nslots                520931539964   #\nretiring             244222587693   # 46.9% (46.9%)\n-- ucode             12467151855    #     2.4%\n-- fastpath          231755435838   #    44.5%\nfrontend             78803572927    # 15.1% (15.1%)\n-- latency           34466661193    #     6.6%\n-- bandwidth         44336911734    #     8.5%\nbackend              92225261154    # 17.7% (17.7%)\n-- cpu               70006065565    #    13.4%\n-- memory            22219195589    #     4.3%\nspeculation          108336463165   # 20.8% (20.8%)\n-- branch mispredict 108185792304   #    20.8%\n-- pipeline restart  150670861      #     0.0%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           86786734054    # 0.15 GHz\ninstructions         247246722972   # 2.85 IPC\nl2 access            614590123      # 2.490 l2 access per 1000 inst\nl2 miss              85318593       # 13.88% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Processes are straightforwar but just about as much time is spent in benchmark overhead as in the benchmark.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>331 processes\n\t  6 lame                    17.52     0.04\n\t 68 clinfo                  15.54     6.98\n\t 38 vulkaninfo               0.57     1.52\n\t  6 glxinfo:gdrv0            0.15     0.06\n\t  2 glxinfo                  0.07     0.02\n\t  2 glxinfo:cs0              0.07     0.02\n\t  2 glxinfo:disk$0           0.07     0.02\n\t  2 glxinfo:sh0              0.07     0.02\n\t  2 glxinfo:shlo0            0.07     0.02\n\t  4 vulkani:disk$0           0.06     0.16\n\t  6 php                      0.05     0.09\n\t  5 clang                    0.04     0.04\n\t  2 llvmpipe-0               0.03     0.08\n\t  2 llvmpipe-1               0.03     0.08\n\t  2 llvmpipe-10              0.03     0.08\n\t  2 llvmpipe-11              0.03     0.08\n\t  2 llvmpipe-12              0.03     0.08\n\t  2 llvmpipe-13              0.03     0.08\n\t  2 llvmpipe-14              0.03     0.08\n\t  2 llvmpipe-15              0.03     0.08\n\t  2 llvmpipe-2               0.03     0.08\n\t  2 llvmpipe-3               0.03     0.08\n\t  2 llvmpipe-4               0.03     0.08\n\t  2 llvmpipe-5               0.03     0.08\n\t  2 llvmpipe-6               0.03     0.08\n\t  2 llvmpipe-7               0.03     0.08\n\t  2 llvmpipe-8               0.03     0.08\n\t  2 llvmpipe-9               0.03     0.08\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.00     0.02\n\t 74 sh                       0.00     0.00\n\t 12 gsettings                0.00     0.00\n\t 10 gcc                      0.00     0.00\n\t  7 stat                     0.00     0.00\n\t  7 systemd-detect-          0.00     0.00\n\t  5 llvm-link                0.00     0.00\n\t  5 phoronix-test-s          0.00     0.00\n\t  3 gmain                    0.00     0.00\n\t  2 lscpu                    0.00     0.00\n\t  2 stty                     0.00     0.00\n\t  2 uname                    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 dconf worker             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 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\n\n\n<p>The entire computation is only six processes of &#8220;lame&#8221;, the rest is all overhead.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      42818) lame             cpu=1 start=5.49  finish=11.33\n        42819) lame             cpu=2 start=5.49  finish=11.33\n      42820) lame             cpu=15 start=15.33 finish=21.21\n        42821) lame             cpu=1 start=15.33 finish=21.21\n      42822) lame             cpu=15 start=25.22 finish=31.09\n        42823) lame             cpu=0 start=25.22 finish=31.09<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Encode-mp3 is one of several quick-running encode benchmarks. These are quick-running high-IPC programs with just a two threads runnable at a time and an overall runtime of barely 10 seconds. Topdown shows a quick running benchmark with high retirement rate. <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/encode-mp3\/\"><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-443","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/443","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=443"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/443\/revisions"}],"predecessor-version":[{"id":470,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/443\/revisions\/470"}],"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=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}