{"id":447,"date":"2024-01-13T00:42:07","date_gmt":"2024-01-13T00:42:07","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=447"},"modified":"2024-01-13T03:28:59","modified_gmt":"2024-01-13T03:28:59","slug":"encode-wavpack","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/encode-wavpack\/","title":{"rendered":"encode-wavpack"},"content":{"rendered":"\n<p>Encode-wavpack is one of several quick-running encode benchmarks.  These are quick-running high-IPC programs with just a few threads. In this case, single-threaded code with just two in the run queue.<\/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-6.png\" alt=\"\" class=\"wp-image-475\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-6.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-6-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-6-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown overview shows a high retirement rate though slightly lower than encode-{flac,mp3,opus with more backend stalls than these other workloads.<\/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-44.png\" alt=\"\" class=\"wp-image-477\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-44.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-44-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-44-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics shows low on-cpu and this is integer code not floating point. It shows <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              81.288\non_cpu               0.045          # 0.72 \/ 16 cores\nutime                56.974\nstime                1.768\nnvcsw                2030           # 83.57%\nnivcsw               399            # 16.43%\ninblock              0              # 0.00\/sec\nonblock              567056         # 6975.89\/sec\ncpu-clock            58760032793    # 58.760 seconds\ntask-clock           58762776539    # 58.763 seconds\npage faults          806148         # 13718.685\/sec\ncontext switches     2642           # 44.960\/sec\ncpu migrations       261            # 4.442\/sec\nmajor page faults    2              # 0.034\/sec\nminor page faults    806146         # 13718.651\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             30881285460    # 47.052 branches per 1000 inst\nbranch misses        576784386      # 1.87% branch miss\nconditional          28387288151    # 43.252 conditional branches per 1000 inst\nindirect             54721184       # 0.083 indirect branches per 1000 inst\ncpu-cycles           264182014128   # 0.20 GHz\ninstructions         652396582381   # 2.47 IPC\nslots                531075218040   #\nretiring             213886827032   # 40.3% (40.3%)\n-- ucode             21891956       #     0.0%\n-- fastpath          213864935076   #    40.3%\nfrontend             26919039373    #  5.1% ( 5.1%)\n-- latency           16849528800    #     3.2%\n-- bandwidth         10069510573    #     1.9%\nbackend              274396277779   # 51.7% (51.7%)\n-- cpu               168143244990   #    31.7%\n-- memory            106253032789   #    20.0%\nspeculation          15812928869    #  3.0% ( 3.0%)\n-- branch mispredict 14744747552    #     2.8%\n-- pipeline restart  1068181317     #     0.2%\nsmt-contention       59873118       #  0.0% ( 0.0%)\ncpu-cycles           264309778078   # 0.20 GHz\ninstructions         655823607040   # 2.48 IPC\ninstructions         219167172139   # 8.343 l2 access per 1000 inst\nl2 hit from l1       1613652453     # 4.91% l2 miss\nl2 miss from l1      38812508       #\nl2 hit from l2 pf    163989864      #\nl3 hit from l2 pf    43271326       #\nl3 miss from l2 pf   7666574        #\ninstructions         217854022625   # 0.246 float per 1000 inst\nfloat 512            64             # 0.000 AVX-512 per 1000 inst\nfloat 256            660            # 0.000 AVX-256 per 1000 inst\nfloat 128            53692497       # 0.246 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              103.504\non_cpu               0.049          # 0.79 \/ 16 cores\nutime                80.175\nstime                1.237\nnvcsw                1949           # 81.62%\nnivcsw               439            # 18.38%\ninblock              24             # 0.23\/sec\nonblock              555808         # 5369.93\/sec\ncpu-clock            81426009477    # 81.426 seconds\ntask-clock           81428952583    # 81.429 seconds\npage faults          790680         # 9710.060\/sec\ncontext switches     2716           # 33.354\/sec\ncpu migrations       289            # 3.549\/sec\nmajor page faults    0              # 0.000\/sec\nminor page faults    790680         # 9710.060\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             30304635180    # 46.296 branches per 1000 inst\nbranch misses        386963586      # 1.28% branch miss\nconditional          30304647756    # 46.296 conditional branches per 1000 inst\nindirect             80503505       # 0.123 indirect branches per 1000 inst\nslots                1844401909574  #\nretiring             641280948304   # 34.8% (34.8%)\n-- ucode             13641626414    #     0.7%\n-- fastpath          627639321890   #    34.0%\nfrontend             288078159845   # 15.6% (15.6%)\n-- latency           10453283488    #     0.6%\n-- bandwidth         277624876357   #    15.1%\nbackend              842396323749   # 45.7% (45.7%)\n-- cpu               826627133690   #    44.8%\n-- memory            15769190059    #     0.9%\nspeculation          72637032797    #  3.9% ( 3.9%)\n-- branch mispredict 69626946753    #     3.8%\n-- pipeline restart  3010086044     #     0.2%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           307537466480   # 0.19 GHz\ninstructions         654387499018   # 2.13 IPC\nl2 access            4828080847     # 7.384 l2 access per 1000 inst\nl2 miss              227588403      # 4.71% l2 miss<\/code><\/pre>\n\n\n\n<p>Process structure is straightforward with only five wavpack invocations and the rest is process overhead of the test suite.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>367 processes\n\t  5 wavpack                 55.75     1.18\n\t 67 clinfo                  16.60     5.57\n\t 38 vulkaninfo               0.76     1.34\n\t  6 glxinfo:gdrv0            0.15     0.07\n\t  4 vulkani:disk$0           0.08     0.15\n\t  2 glxinfo                  0.07     0.03\n\t  2 glxinfo:cs0              0.07     0.03\n\t  2 glxinfo:disk$0           0.07     0.03\n\t  2 glxinfo:sh0              0.07     0.03\n\t  2 glxinfo:shlo0            0.07     0.03\n\t  6 clang                    0.06     0.06\n\t  6 php                      0.04     0.10\n\t  2 llvmpipe-0               0.04     0.08\n\t  2 llvmpipe-1               0.04     0.08\n\t  2 llvmpipe-10              0.04     0.08\n\t  2 llvmpipe-11              0.04     0.08\n\t  2 llvmpipe-12              0.04     0.08\n\t  2 llvmpipe-13              0.04     0.08\n\t  2 llvmpipe-14              0.04     0.08\n\t  2 llvmpipe-15              0.04     0.08\n\t  2 llvmpipe-2               0.04     0.08\n\t  2 llvmpipe-3               0.04     0.08\n\t  2 llvmpipe-4               0.04     0.08\n\t  2 llvmpipe-5               0.04     0.08\n\t  2 llvmpipe-6               0.04     0.08\n\t  2 llvmpipe-7               0.04     0.08\n\t  2 llvmpipe-8               0.04     0.08\n\t  2 llvmpipe-9               0.04     0.08\n\t  3 rocminfo                 0.00     0.03\n\t  1 lspci                    0.00     0.02\n\t  5 rm                       0.00     0.01\n\t 87 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t 11 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 llvm-link                0.00     0.00\n\t  5 bash                     0.00     0.00\n\t  5 encode-wavpack           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 cc                       0.00     0.00\n\t  2 lscpu                    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 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 ps                       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>Encode-wavpack is one of several quick-running encode benchmarks. These are quick-running high-IPC programs with just a few threads. In this case, single-threaded code with just two in the run queue. Topdown overview shows a high retirement rate though slightly lower <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/encode-wavpack\/\"><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-447","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/447","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=447"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/447\/revisions"}],"predecessor-version":[{"id":478,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/447\/revisions\/478"}],"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=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}