{"id":1078,"date":"2024-01-29T11:25:13","date_gmt":"2024-01-29T11:25:13","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1078"},"modified":"2024-01-30T01:16:27","modified_gmt":"2024-01-30T01:16:27","slug":"phpbench","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/phpbench\/","title":{"rendered":"phpbench"},"content":{"rendered":"\n<p>A benchmark suite for php. This is a single-threaded benchmark with high IPC and high retirement rate. It also has a quick runtime.<\/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-86.png\" alt=\"\" class=\"wp-image-1108\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-86.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-86-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/systemtime-86-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile has a mix reflecting both a composite of test cases and a quick run time.<\/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-123.png\" alt=\"\" class=\"wp-image-1110\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-123.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-123-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/01\/amdtopdown-123-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics pull the composite together. The backend stalls are low and retirement rate is high. There is little floating point and very little L2 activity.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              71.058\non_cpu               0.050          # 0.80 \/ 16 cores\nutime                56.344\nstime                0.783\nnvcsw                1911           # 79.53%\nnivcsw               492            # 20.47%\ninblock              0              # 0.00\/sec\nonblock              12664          # 178.22\/sec\ncpu-clock            57153546668    # 57.154 seconds\ntask-clock           57156008472    # 57.156 seconds\npage faults          152146         # 2661.942\/sec\ncontext switches     2589           # 45.297\/sec\ncpu migrations       259            # 4.531\/sec\nmajor page faults    2              # 0.035\/sec\nminor page faults    152144         # 2661.907\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             210271913729   # 233.593 branches per 1000 inst\nbranch misses        129614926      # 0.06% branch miss\nconditional          138843502982   # 154.243 conditional branches per 1000 inst\nindirect             24408622773    # 27.116 indirect branches per 1000 inst\ncpu-cycles           263799618154   # 0.23 GHz\ninstructions         897798589716   # 3.40 IPC high\nslots                530592307308   #\nretiring             310571931604   # 58.5% (58.5%) high\n-- ucode             613571138      #     0.1%\n-- fastpath          309958360466   #    58.4%\nfrontend             124268320822   # 23.4% (23.4%)\n-- latency           47912796564    #     9.0%\n-- bandwidth         76355524258    #    14.4%\nbackend              92399776108    # 17.4% (17.4%) low\n-- cpu               29006832602    #     5.5%\n-- memory            63392943506    #    11.9%\nspeculation          3324389886     #  0.6% ( 0.6%) low\n-- branch mispredict 2738626655     #     0.5%\n-- pipeline restart  585763231      #     0.1%\nsmt-contention       27626792       #  0.0% ( 0.0%)\ncpu-cycles           262509222435   # 0.23 GHz\ninstructions         897889576573   # 3.42 IPC high\ninstructions         300467635471   # 0.605 l2 access per 1000 inst\nl2 hit from l1       165756174      # 11.90% l2 miss\nl2 miss from l1      12538980       #\nl2 hit from l2 pf    6994982        #\nl3 hit from l2 pf    3800174        #\nl3 miss from l2 pf   5293291        #\ninstructions         299818977094   # 10.487 float per 1000 inst\nfloat 512            60             # 0.000 AVX-512 per 1000 inst\nfloat 256            598            # 0.000 AVX-256 per 1000 inst\nfloat 128            3144180834     # 10.487 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              70.915\non_cpu               0.050          # 0.81 \/ 16 cores\nutime                56.850\nstime                0.390\nnvcsw                1923           # 86.54%\nnivcsw               299            # 13.46%\ninblock              528            # 7.45\/sec\nonblock              1320           # 18.61\/sec\ncpu-clock            57246343179    # 57.246 seconds\ntask-clock           57248725490    # 57.249 seconds\npage faults          140758         # 2458.710\/sec\ncontext switches     2407           # 42.045\/sec\ncpu migrations       234            # 4.087\/sec\nmajor page faults    1              # 0.017\/sec\nminor page faults    140757         # 2458.692\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             209215212501   # 233.093 branches per 1000 inst\nbranch misses        162111365      # 0.08% branch miss\nconditional          209215224373   # 233.093 conditional branches per 1000 inst\nindirect             24410487087    # 27.196 indirect branches per 1000 inst\nslots                1300410734558  #\nretiring             855226039903   # 65.8% (65.8%) high\n-- ucode             34148079744    #     2.6%\n-- fastpath          821077960159   #    63.1%\nfrontend             205397653770   # 15.8% (15.8%)\n-- latency           33351327421    #     2.6%\n-- bandwidth         172046326349   #    13.2%\nbackend              191999086162   # 14.8% (14.8%) low\n-- cpu               136406269561   #    10.5%\n-- memory            55592816601    #     4.3%\nspeculation          50305389684    #  3.9% ( 3.9%)\n-- branch mispredict 39658080026    #     3.0%\n-- pipeline restart  10647309658    #     0.8%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           217229804759   # 0.19 GHz\ninstructions         897737088274   # 4.13 IPC high\nl2 access            276376768      # 0.308 l2 access per 1000 inst\nl2 miss              86888248       # 31.44% l2 miss\n<\/code><\/pre>\n\n\n\n<p>Process overview is straightforward with several invocations of php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>351 processes\n\t  9 php                     56.09     0.09\n\t 68 clinfo                  17.20     5.99\n\t 38 vulkaninfo               1.33     0.95\n\t  6 glxinfo:gdrv0            0.15     0.01\n\t  6 glxinfo:gl0              0.15     0.01\n\t  4 vulkani:disk$0           0.14     0.10\n\t  2 llvmpipe-0               0.07     0.05\n\t  2 llvmpipe-1               0.07     0.05\n\t  2 llvmpipe-10              0.07     0.05\n\t  2 llvmpipe-11              0.07     0.05\n\t  2 llvmpipe-12              0.07     0.05\n\t  2 llvmpipe-13              0.07     0.05\n\t  2 llvmpipe-14              0.07     0.05\n\t  2 llvmpipe-15              0.07     0.05\n\t  2 llvmpipe-2               0.07     0.05\n\t  2 llvmpipe-3               0.07     0.05\n\t  2 llvmpipe-4               0.07     0.05\n\t  2 llvmpipe-5               0.07     0.05\n\t  2 llvmpipe-6               0.07     0.05\n\t  2 llvmpipe-7               0.07     0.05\n\t  2 llvmpipe-8               0.07     0.05\n\t  2 llvmpipe-9               0.07     0.05\n\t  2 glxinfo                  0.07     0.01\n\t  2 glxinfo:cs0              0.07     0.01\n\t  2 glxinfo:disk$0           0.07     0.01\n\t  2 glxinfo:sh0              0.07     0.01\n\t  2 glxinfo:shlo0            0.07     0.01\n\t  6 clang                    0.04     0.08\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\t 81 sh                       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 llvm-link                0.00     0.00\n\t  5 phoronix-test-s          0.00     0.00\n\t  4 gmain                    0.00     0.00\n\t  3 phpbench                 0.00     0.00\n\t  2 dconf worker             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 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\n\n\n<p>The computation pieces<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      1620429) phpbench         cpu=8 start=5.73  finish=24.44\n        1620430) php              cpu=2 start=5.74  finish=24.44\n      1620433) phpbench         cpu=13 start=28.45 finish=46.71\n        1620434) php              cpu=6 start=28.45 finish=46.71\n      1620435) phpbench         cpu=5 start=50.71 finish=69.82\n        1620436) php              cpu=14 start=50.71 finish=69.82\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A benchmark suite for php. This is a single-threaded benchmark with high IPC and high retirement rate. It also has a quick runtime. Topdown profile has a mix reflecting both a composite of test cases and a quick run time. <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/phpbench\/\"><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-1078","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1078","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=1078"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1078\/revisions"}],"predecessor-version":[{"id":1111,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1078\/revisions\/1111"}],"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=1078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}