{"id":1448,"date":"2024-02-03T23:20:33","date_gmt":"2024-02-03T23:20:33","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1448"},"modified":"2024-02-06T10:05:00","modified_gmt":"2024-02-06T10:05:00","slug":"blake2","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/blake2\/","title":{"rendered":"blake2"},"content":{"rendered":"\n<p>blake2 is a crypto alternative to MD5 and SHA2\/3. There is one test and it runs very quickly. Everything in 18 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\/02\/systemtime-29.png\" alt=\"\" class=\"wp-image-1548\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-29.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-29-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/systemtime-29-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown doesn&#8217;t give enough data points to be interesting.<\/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\/02\/amdtopdown-30.png\" alt=\"\" class=\"wp-image-1550\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-30.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-30-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/02\/amdtopdown-30-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics confirm less than 0.25 of a core.  Given the quick runtime some of these will have large variance.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              18.217\non_cpu               0.012          # 0.20 \/ 16 cores\nutime                2.829\nstime                0.809\nnvcsw                1997           # 82.25%\nnivcsw               431            # 17.75%\ninblock              0              # 0.00\/sec\nonblock              12568          # 689.89\/sec\ncpu-clock            3652210663     # 3.652 seconds\ntask-clock           3654667751     # 3.655 seconds\npage faults          146960         # 40211.590\/sec\ncontext switches     2343           # 641.098\/sec\ncpu migrations       252            # 68.953\/sec\nmajor page faults    2              # 0.547\/sec\nminor page faults    146958         # 40211.042\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             1925133462     # 111.763 branches per 1000 inst\nbranch misses        75108029       # 3.90% branch miss\nconditional          1253682827     # 72.782 conditional branches per 1000 inst\nindirect             48540116       # 2.818 indirect branches per 1000 inst\ncpu-cycles           4271127161     # 0.08 GHz\ninstructions         8197281049     # 1.92 IPC\nslots                9518953572     #\nretiring             2937855969     # 30.9% (30.9%)\n-- ucode             8066347        #     0.1%\n-- fastpath          2929789622     #    30.8%\nfrontend             4455054076     # 46.8% (46.9%) high\n-- latency           3428611128     #    36.0%\n-- bandwidth         1026442948     #    10.8%\nbackend              1641986612     # 17.2% (17.3%) low\n-- cpu               267262731      #     2.8%\n-- memory            1374723881     #    14.4%\nspeculation          472121254      #  5.0% ( 5.0%)\n-- branch mispredict 467125922      #     4.9%\n-- pipeline restart  4995332        #     0.1%\nsmt-contention       11706067       #  0.1% ( 0.0%)\ncpu-cycles           4186759574     # 0.08 GHz\ninstructions         8276096679     # 1.98 IPC\ninstructions         2941668691     # 34.044 l2 access per 1000 inst\nl2 hit from l1       83962542       # 18.64% l2 miss\nl2 miss from l1      10031346       #\nl2 hit from l2 pf    7548860        #\nl3 hit from l2 pf    3708030        #\nl3 miss from l2 pf   4927792        #\ninstructions         2938636863     # 13.305 float per 1000 inst\nfloat 512            33             # 0.000 AVX-512 per 1000 inst\nfloat 256            16             # 0.000 AVX-256 per 1000 inst\nfloat 128            39098678       # 13.305 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         2667718        #\nopcache              999256         # 374.573 opcache per 1000 inst\nopcache miss         539651         # 54.0% opcache miss rate\nl1 dTLB miss         5231           # 1.961 L1 dTLB per 1000 inst\nl2 dTLB miss         1112           # 0.417 L2 dTLB per 1000 inst\ninstructions         2696632        #\nicache               1329318        # 492.955 icache per 1000 inst\nicache miss          115047         #  8.7% icache miss rate\nl1 iTLB miss         13             # 0.005 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            19             # 0.007 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              15.968\non_cpu               0.010          # 0.16 \/ 16 cores\nutime                2.220\nstime                0.354\nnvcsw                1774           # 93.76%\nnivcsw               118            # 6.24%\ninblock              112            # 7.01\/sec\nonblock              1264           # 79.16\/sec\ncpu-clock            2580927898     # 2.581 seconds\ntask-clock           2583053059     # 2.583 seconds\npage faults          135868         # 52599.771\/sec\ncontext switches     1799           # 696.463\/sec\ncpu migrations       234            # 90.590\/sec\nmajor page faults    3              # 1.161\/sec\nminor page faults    135865         # 52598.610\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             1625570992     # 102.545 branches per 1000 inst\nbranch misses        19043958       # 1.17% branch miss\nconditional          1625582928     # 102.545 conditional branches per 1000 inst\nindirect             48884031       # 3.084 indirect branches per 1000 inst\nslots                19603652576    #\nretiring             7249074069     # 37.0% (37.0%)\n-- ucode             631164105      #     3.2%\n-- fastpath          6617909964     #    33.8%\nfrontend             5624336959     # 28.7% (28.7%)\n-- latency           2694991000     #    13.7%\n-- bandwidth         2929345959     #    14.9%\nbackend              4502057955     # 23.0% (23.0%)\n-- cpu               1875569336     #     9.6%\n-- memory            2626488619     #    13.4%\nspeculation          2242365031     # 11.4% (11.4%) high\n-- branch mispredict 2120900191     #    10.8%\n-- pipeline restart  121464840      #     0.6%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           3338619990     # 0.09 GHz\ninstructions         7455339080     # 2.23 IPC\nl2 access            223930695      # 30.114 l2 access per 1000 inst\nl2 miss              67819500       # 30.29% l2 miss\ncpu-cycles           3318259338     # 20.6% memory latency\nload stalls          611490716      #  1.3% l1 bound\nl1 miss              568002941      #  8.8% l2 bound\nl2 miss              275638797      #  2.3% l3 bound\nl3 miss              199388104      #  6.0% dram bound\nstore_stalls         73518241       #  2.2% store bound\n<\/code><\/pre>\n\n\n\n<p>Process overview is mostly test overhead<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>299 processes\n\t 68 clinfo                  18.54     8.10\n\t 38 vulkaninfo               1.15     1.15\n\t  6 glxinfo:gdrv0            0.14     0.06\n\t  6 glxinfo:gl0              0.14     0.06\n\t  4 vulkani:disk$0           0.13     0.12\n\t  2 llvmpipe-0               0.07     0.06\n\t  2 llvmpipe-1               0.07     0.06\n\t  2 llvmpipe-10              0.07     0.06\n\t  2 llvmpipe-11              0.07     0.06\n\t  2 llvmpipe-12              0.07     0.06\n\t  2 llvmpipe-13              0.07     0.06\n\t  2 llvmpipe-14              0.07     0.06\n\t  2 llvmpipe-15              0.07     0.06\n\t  2 llvmpipe-2               0.07     0.06\n\t  2 llvmpipe-3               0.07     0.06\n\t  2 llvmpipe-4               0.07     0.06\n\t  2 llvmpipe-5               0.07     0.06\n\t  2 llvmpipe-6               0.07     0.06\n\t  2 llvmpipe-7               0.07     0.06\n\t  2 llvmpipe-8               0.07     0.06\n\t  2 llvmpipe-9               0.07     0.06\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 php                      0.06     0.04\n\t  3 clang                    0.04     0.02\n\t  3 rocminfo                 0.03     0.00\n\t  1 lspci                    0.01     0.02\n\t 57 sh                       0.00     0.00\n\t  6 gcc                      0.00     0.00\n\t  6 gsettings                0.00     0.00\n\t  5 dconf worker             0.00     0.00\n\t  5 gmain                    0.00     0.00\n\t  5 phoronix-test-s          0.00     0.00\n\t  5 stat                     0.00     0.00\n\t  4 systemd-detect-          0.00     0.00\n\t  3 llvm-link                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 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>blake2 is a crypto alternative to MD5 and SHA2\/3. There is one test and it runs very quickly. Everything in 18 seconds Topdown doesn&#8217;t give enough data points to be interesting. AMD metrics confirm less than 0.25 of a core. <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/blake2\/\"><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-1448","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1448","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=1448"}],"version-history":[{"count":3,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1448\/revisions"}],"predecessor-version":[{"id":1551,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1448\/revisions\/1551"}],"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=1448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}