{"id":2007,"date":"2024-03-05T12:18:27","date_gmt":"2024-03-05T12:18:27","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=2007"},"modified":"2024-03-06T00:34:18","modified_gmt":"2024-03-06T00:34:18","slug":"espeak","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/espeak\/","title":{"rendered":"espeak"},"content":{"rendered":"\n<p>A test of the espeak speech synthesizer. Single-threaded and running quickly.<\/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\/03\/systemtime-20.png\" alt=\"\" class=\"wp-image-2015\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-20.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-20-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-20-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows a high retirement rate with some backend stalls.<\/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\/03\/amdtopdown-21.png\" alt=\"\" class=\"wp-image-2017\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-21.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-21-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-21-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics confirm the high retirement rate. There is no floating point and little L2 access. The opcache is also effective.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              112.946\non_cpu               0.052          # 0.83 \/ 16 cores\nutime                87.090\nstime                7.197\nnvcsw                21350          # 96.97%\nnivcsw               666            # 3.03%\ninblock              48             # 0.42\/sec\nonblock              12702104       # 112461.35\/sec\ncpu-clock            94310785834    # 94.311 seconds\ntask-clock           94318017988    # 94.318 seconds\npage faults          149818         # 1588.435\/sec\ncontext switches     22403          # 237.526\/sec\ncpu migrations       289            # 3.064\/sec\nmajor page faults    2              # 0.021\/sec\nminor page faults    149816         # 1588.413\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             193163296246   # 115.658 branches per 1000 inst\nbranch misses        1744326831     # 0.90% branch miss\nconditional          182676341543   # 109.379 conditional branches per 1000 inst\nindirect             604072931      # 0.362 indirect branches per 1000 inst\ncpu-cycles           434557730024   # 0.24 GHz\ninstructions         1668407686867  # 3.84 IPC high\nslots                870993417672   #\nretiring             580446120951   # 66.6% (66.7%) high\n-- ucode             427024719      #     0.0%\n-- fastpath          580019096232   #    66.6%\nfrontend             92391692352    # 10.6% (10.6%)\n-- latency           68703756942    #     7.9%\n-- bandwidth         23687935410    #     2.7%\nbackend              179965270808   # 20.7% (20.7%)\n-- cpu               101990866904   #    11.7%\n-- memory            77974403904    #     9.0%\nspeculation          18042803552    #  2.1% ( 2.1%)\n-- branch mispredict 18003487509    #     2.1%\n-- pipeline restart  39316043       #     0.0%\nsmt-contention       147206319      #  0.0% ( 0.0%)\ncpu-cycles           432787935090   # 0.24 GHz\ninstructions         1668205003308  # 3.85 IPC high\ninstructions         556647980697   # 2.582 l2 access per 1000 inst\nl2 hit from l1       1362700789     # 6.20% l2 miss\nl2 miss from l1      47715752       #\nl2 hit from l2 pf    33010019       #\nl3 hit from l2 pf    13918066       #\nl3 miss from l2 pf   27479269       #\ninstructions         556976761227   # 2.003 float per 1000 inst\nfloat 512            63             # 0.000 AVX-512 per 1000 inst\nfloat 256            516            # 0.000 AVX-256 per 1000 inst\nfloat 128            1115368825     # 2.003 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         1669554498304  #\nopcache              184696141102   # 110.626 opcache per 1000 inst\nopcache miss         8848476154     #  4.8% opcache miss rate\nl1 dTLB miss         166790988      # 0.100 L1 dTLB per 1000 inst\nl2 dTLB miss         7621946        # 0.005 L2 dTLB per 1000 inst\ninstructions         1671940200498  #\nicache               19248358842    # 11.513 icache per 1000 inst\nicache miss          2671413379     # 13.9% icache miss rate\nl1 iTLB miss         12686920       # 0.008 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            16898          # 0.000 TLB flush 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              519.760\non_cpu               0.050          # 0.80 \/ 16 cores\nutime                397.642\nstime                18.654\nnvcsw                4112           # 65.54%\nnivcsw               2162           # 34.46%\ninblock              552            # 1.06\/sec\nonblock              50758896       # 97658.37\/sec\ncpu-clock            416348151355   # 416.348 seconds\ntask-clock           416359883778   # 416.360 seconds\npage faults          150554         # 361.596\/sec\ncontext switches     8673           # 20.831\/sec\ncpu migrations       434            # 1.042\/sec\nmajor page faults    0              # 0.000\/sec\nminor page faults    150554         # 361.596\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             762305289947   # 114.664 branches per 1000 inst\nbranch misses        7354769854     # 0.96% branch miss\nconditional          762305303131   # 114.664 conditional branches per 1000 inst\nindirect             2461514797     # 0.370 indirect branches per 1000 inst\nslots                2355213170534  #\nretiring             1554402648687  # 66.0% (66.0%) high\n-- ucode             78497933168    #     3.3%\n-- fastpath          1475904715519  #    62.7%\nfrontend             262631941365   # 11.2% (11.2%)\n-- latency           87865535157    #     3.7%\n-- bandwidth         174766406208   #     7.4%\nbackend              311417454416   # 13.2% (13.2%) low\n-- cpu               269763128222   #    11.5%\n-- memory            41654326194    #     1.8%\nspeculation          229071059789   #  9.7% ( 9.7%)\n-- branch mispredict 224352216417   #     9.5%\n-- pipeline restart  4718843372     #     0.2%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           393405541781   # 0.18 GHz\ninstructions         1669050370516  # 4.24 IPC high\nl2 access            3117802373     # 1.869 l2 access per 1000 inst\nl2 miss              291667593      # 9.35% l2 miss\ncpu-cycles           392641925148   #  4.0% memory latency\nload stalls          14797751781    #  2.9% l1 bound\nl1 miss              3541223751     #  0.7% l2 bound\nl2 miss              687864109      #  0.1% l3 bound\nl3 miss              373883226      #  0.1% dram bound\nstore_stalls         937830913      #  0.2% store bound\n<\/code><\/pre>\n\n\n\n<p>Process overview shows espeak-ng as the driver process<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>360 processes\n\t  8 espeak-ng              171.86    13.74\n\t 68 clinfo                  16.53     5.99\n\t 38 vulkaninfo               1.11     1.52\n\t  4 vulkani:disk$0           0.11     0.16\n\t  6 glxinfo:gdrv0            0.06     0.10\n\t  6 glxinfo:gl0              0.06     0.10\n\t  2 llvmpipe-0               0.06     0.08\n\t  2 llvmpipe-1               0.06     0.08\n\t  2 llvmpipe-10              0.06     0.08\n\t  2 llvmpipe-11              0.06     0.08\n\t  2 llvmpipe-12              0.06     0.08\n\t  2 llvmpipe-13              0.06     0.08\n\t  2 llvmpipe-14              0.06     0.08\n\t  2 llvmpipe-15              0.06     0.08\n\t  2 llvmpipe-2               0.06     0.08\n\t  2 llvmpipe-3               0.06     0.08\n\t  2 llvmpipe-4               0.06     0.08\n\t  2 llvmpipe-5               0.06     0.08\n\t  2 llvmpipe-6               0.06     0.08\n\t  2 llvmpipe-7               0.06     0.08\n\t  2 llvmpipe-8               0.06     0.08\n\t  2 llvmpipe-9               0.06     0.08\n\t  6 php                      0.06     0.07\n\t  6 clang                    0.04     0.08\n\t  2 glxinfo                  0.04     0.05\n\t  2 glxinfo:cs0              0.04     0.05\n\t  2 glxinfo:disk$0           0.04     0.05\n\t  2 glxinfo:sh0              0.04     0.05\n\t  2 glxinfo:shlo0            0.04     0.05\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.00     0.02\n\t 82 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t  9 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 phoronix-test-s          0.00     0.00\n\t  4 espeak                   0.00     0.00\n\t  4 gmain                    0.00     0.00\n\t  3 dconf worker             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 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\n\n\n<p>Computation blocks<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      971105) espeak           cpu=4 start=5.63  finish=28.69\n        971106) espeak-ng        cpu=6 start=5.63  finish=28.69\n          971107) espeak-ng        cpu=13 start=5.64  finish=28.69\n      971108) espeak           cpu=15 start=32.69 finish=56.04\n        971109) espeak-ng        cpu=0 start=32.70 finish=56.04\n          971110) espeak-ng        cpu=2 start=32.70 finish=56.04\n      971111) espeak           cpu=15 start=60.05 finish=83.45\n        971112) espeak-ng        cpu=0 start=60.05 finish=83.45\n          971113) espeak-ng        cpu=11 start=60.05 finish=83.45\n      971114) espeak           cpu=15 start=87.46 finish=110.82\n        971115) espeak-ng        cpu=0 start=87.46 finish=110.82\n          971116) espeak-ng        cpu=10 start=87.46 finish=110.82\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A test of the espeak speech synthesizer. Single-threaded and running quickly. Topdown profile shows a high retirement rate with some backend stalls. AMD metrics confirm the high retirement rate. There is no floating point and little L2 access. The opcache <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/espeak\/\"><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-2007","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/2007","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=2007"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/2007\/revisions"}],"predecessor-version":[{"id":2018,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/2007\/revisions\/2018"}],"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=2007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}