{"id":488,"date":"2024-01-13T14:13:47","date_gmt":"2024-01-13T14:13:47","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=488"},"modified":"2024-01-13T14:13:48","modified_gmt":"2024-01-13T14:13:48","slug":"selenium","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/selenium\/","title":{"rendered":"selenium"},"content":{"rendered":"\n<p>Selenium is a browser benchmark. I had difficulty running all browsers, getting messages about compatibility between the driver and the browser, so ran just the first workload (ARES6) with firefox. The benchmark runs just a few processes with a run queue typically around three but overall lower on cpu.<\/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-8.png\" alt=\"\" class=\"wp-image-489\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-8.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-8-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-8-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown overview suggests a higher 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\/01\/amdtopdown-46.png\" alt=\"\" class=\"wp-image-490\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-46.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-46-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-46-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show mostly integer code with a high number of branches but not much branch misses and low overall on cpu<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              244.145\non_cpu               0.054          # 0.87 \/ 16 cores\nutime                197.677\nstime                13.944\nnvcsw                294406         # 99.30%\nnivcsw               2063           # 0.70%\ninblock              0              # 0.00\/sec\nonblock              585104         # 2396.54\/sec\ncpu-clock            210435207355   # 210.435 seconds\ntask-clock           210714505551   # 210.715 seconds\npage faults          2129926        # 10108.113\/sec\ncontext switches     298494         # 1416.580\/sec\ncpu migrations       6407           # 30.406\/sec\nmajor page faults    3              # 0.014\/sec\nminor page faults    2129743        # 10107.244\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             531372177492   # 202.159 branches per 1000 inst\nbranch misses        2256411550     # 0.42% branch miss\nconditional          423144534863   # 160.984 conditional branches per 1000 inst\nindirect             25126567512    # 9.559 indirect branches per 1000 inst\ncpu-cycles           906962298539   # 0.24 GHz\ninstructions         2617297002300  # 2.89 IPC\nslots                1829185537386  #\nretiring             847932420279   # 46.4% (46.5%)\n-- ucode             1073947736     #     0.1%\n-- fastpath          846858472543   #    46.3%\nfrontend             329493102883   # 18.0% (18.1%)\n-- latency           201425245470   #    11.0%\n-- bandwidth         128067857413   #     7.0%\nbackend              604787513825   # 33.1% (33.1%)\n-- cpu               138736153423   #     7.6%\n-- memory            466051360402   #    25.5%\nspeculation          42992495765    #  2.4% ( 2.4%)\n-- branch mispredict 40637669597    #     2.2%\n-- pipeline restart  2354826168     #     0.1%\nsmt-contention       3973031484     #  0.2% ( 0.0%)\ncpu-cycles           904753979023   # 0.24 GHz\ninstructions         2612030239842  # 2.89 IPC\ninstructions         873487738738   # 16.964 l2 access per 1000 inst\nl2 hit from l1       13244902201    # 14.32% l2 miss\nl2 miss from l1      1012185314     #\nl2 hit from l2 pf    462440572      #\nl3 hit from l2 pf    661522379      #\nl3 miss from l2 pf   448806142      #\ninstructions         873833873136   # 17.897 float per 1000 inst\nfloat 512            127            # 0.000 AVX-512 per 1000 inst\nfloat 256            658            # 0.000 AVX-256 per 1000 inst\nfloat 128            15638730810    # 17.897 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         4              # 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              264.794\non_cpu               0.057          # 0.91 \/ 16 cores\nutime                230.965\nstime                11.144\nnvcsw                296464         # 98.62%\nnivcsw               4148           # 1.38%\ninblock              0              # 0.00\/sec\nonblock              579584         # 2188.81\/sec\ncpu-clock            239482735231   # 239.483 seconds\ntask-clock           239746975024   # 239.747 seconds\npage faults          2070170        # 8634.812\/sec\ncontext switches     302686         # 1262.523\/sec\ncpu migrations       12715          # 53.035\/sec\nmajor page faults    20             # 0.083\/sec\nminor page faults    2070054        # 8634.328\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             531296721916   # 201.841 branches per 1000 inst\nbranch misses        1711688564     # 0.32% branch miss\nconditional          531296788764   # 201.841 conditional branches per 1000 inst\nindirect             27582906382    # 10.479 indirect branches per 1000 inst\nslots                4960585610336  #\nretiring             2395814439979  # 48.3% (48.3%)\n-- ucode             76264399787    #     1.5%\n-- fastpath          2319550040192  #    46.8%\nfrontend             1017415424911  # 20.5% (20.5%)\n-- latency           470893075843   #     9.5%\n-- bandwidth         546522349068   #    11.0%\nbackend              1351344616681  # 27.2% (27.2%)\n-- cpu               1069481769666  #    21.6%\n-- memory            281862847015   #     5.7%\nspeculation          253324512051   #  5.1% ( 5.1%)\n-- branch mispredict 232416409730   #     4.7%\n-- pipeline restart  20908102321    #     0.4%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           868096608466   # 0.21 GHz\ninstructions         2721244665497  # 3.13 IPC\nl2 access            47512553676    # 18.243 l2 access per 1000 inst\nl2 miss              7768419170     # 16.35% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process overview has a timer process with several different worker threads and a high number of threads overall.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1833 processes\n\t 39 Timer                  195.29    10.97\n\t 30 StyleThread#1          195.22    10.88\n\t 30 StyleThread#2          195.21    10.88\n\t 30 StyleThread#3          195.21    10.88\n\t 30 StyleThread#4          195.21    10.88\n\t 30 StyleThread#5          195.21    10.88\n\t 30 ImageIO                195.20    10.87\n\t 30 ImageBridgeChld        195.17    10.85\n\t 30 ProcessHangMon         194.88    10.68\n\t 36 ProfilerChild          176.81     3.89\n\t 24 RemVidChild            176.71     3.74\n\t 90 firefox                 27.92     9.66\n\t 68 clinfo                  19.50     6.65\n\t 11 gmain                   18.51     7.14\n\t  6 AudioIP~allback         18.51     7.14\n\t  6 Shutdow~minator         18.51     7.14\n\t  6 Softwar~cThread         18.51     7.14\n\t  6 gdbus                   18.51     7.14\n\t  6 Compositor              18.49     7.13\n\t  6 GMPThread               18.49     7.13\n\t  6 Permission              18.49     7.13\n\t  6 SandboxReporter         18.49     7.13\n\t  6 Renderer                18.47     7.13\n\t  6 WRWorker#0              18.47     7.13\n\t  6 WRWorker#1              18.47     7.13\n\t  6 WRWorker#2              18.47     7.13\n\t  6 WRWorker#3              18.47     7.13\n\t  6 WRWorkerLP#0            18.47     7.13\n\t  6 WRWorkerLP#1            18.47     7.13\n\t  6 WRWorkerLP#2            18.47     7.13\n\t  6 WRWorkerLP#3            18.47     7.13\n\t  6 WRWorkerLP#4            18.47     7.13\n\t  6 WRWorkerLP#5            18.47     7.13\n\t  6 WRWorkerLP#6            18.47     7.13\n\t  6 WRWorkerLP#7            18.47     7.13\n\t  6 MemoryPoller            18.43     7.06\n\t  6 glean.dispatche         18.42     7.06\n\t  6 glean.mps               18.42     7.06\n\t  6 glean.shutdown          18.42     7.06\n\t  6 Cookie                  18.25     6.95\n\t  6 WRRende~ckend#1         18.11     6.88\n\t  6 WRScene~derLP#1         18.11     6.88\n\t  6 WRScene~ilder#1         18.11     6.88\n\t  6 SwComposite             18.11     6.87\n\t 12 pool-firefox            15.86     5.29\n\t 15 glean.upload            15.32     4.47\n\t  3 RemoteLzyStream         14.62     5.96\n\t  6 SaveScripts             11.67     3.98\n\t  6 glean.init               6.09     1.80\n\t  6 glean.ping_dire          6.09     1.79\n\t  1 FSBroker72380            4.92     1.92\n\t  1 FSBroker72491            4.92     1.91\n\t  1 FSBroker72499            4.90     1.91\n\t  1 FSBroker72510            4.90     1.91\n\t  1 FSBroker72517            4.90     1.91\n\t  1 FSBroker72560            4.90     1.91\n\t  1 FSBroker72401            4.89     1.90\n\t  1 FSBroker72894            4.88     2.02\n\t  1 FSBroker73007            4.87     2.02\n\t  1 FSBroker73014            4.86     2.02\n\t  1 FSBroker73028            4.86     2.02\n\t  1 FSBroker73032            4.86     2.02\n\t  1 FSBroker73077            4.86     2.02\n\t  1 FSBroker72916            4.84     2.02\n\t  1 FSBroker71877            4.82     2.01\n\t  1 FSBroker71990            4.81     2.00\n\t  1 FSBroker72000            4.80     2.00\n\t  1 FSBroker72010            4.80     2.00\n\t  1 FSBroker72019            4.80     2.00\n\t  1 FSBroker72061            4.80     2.00\n\t  1 FSBroker71899            4.79     1.99\n\t  1 FSBroker72941            2.43     0.85\n\t  1 FSBroker72427            2.39     0.76\n\t  1 FSBroker71926            2.33     0.93\n\t  1 FSBroker73197            1.31     0.37\n\t  1 FSBroker73310            1.30     0.37\n\t  1 FSBroker72185            1.28     0.39\n\t  1 FSBroker72294            1.28     0.37\n\t  1 FSBroker72692            1.26     0.39\n\t  1 FSBroker72811            1.25     0.39\n\t  1 FSBroker73220            1.24     0.33\n\t  1 FSBroker73244            1.23     0.33\n\t  1 FSBroker72205            1.22     0.33\n\t  1 FSBroker72228            1.22     0.33\n\t  1 FSBroker72718            1.20     0.35\n\t  1 FSBroker72745            1.20     0.35\n\t 38 vulkaninfo               1.15     1.52\n\t  6 WebExtensions            1.02     0.37\n\t  6 BGReadURLs               0.61     0.21\n\t  7 python3                  0.32     0.08\n\t  6 glxinfo:gdrv0            0.15     0.13\n\t  4 vulkani:disk$0           0.12     0.17\n\t  2 glxinfo                  0.07     0.05\n\t  2 glxinfo:cs0              0.07     0.05\n\t  2 glxinfo:disk$0           0.07     0.05\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Selenium is a browser benchmark. I had difficulty running all browsers, getting messages about compatibility between the driver and the browser, so ran just the first workload (ARES6) with firefox. The benchmark runs just a few processes with a run <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/selenium\/\"><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-488","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/488","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=488"}],"version-history":[{"count":1,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/488\/revisions"}],"predecessor-version":[{"id":491,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/488\/revisions\/491"}],"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=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}