{"id":1918,"date":"2024-03-02T16:05:42","date_gmt":"2024-03-02T16:05:42","guid":{"rendered":"https:\/\/mvermeulen.org\/perf\/?page_id=1918"},"modified":"2024-03-03T18:27:11","modified_gmt":"2024-03-03T18:27:11","slug":"cryptopp","status":"publish","type":"page","link":"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/cryptopp\/","title":{"rendered":"cryptopp"},"content":{"rendered":"\n<p>A C++ library of cryptographic algorithms. There are three subtests. These are single-threaded<\/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-10.png\" alt=\"\" class=\"wp-image-1937\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-10.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-10-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/systemtime-10-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>Topdown profile shows some blurring over time with sections of strong branch misses and other sections with high retirement rates.<\/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-11.png\" alt=\"\" class=\"wp-image-1939\" srcset=\"https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-11.png 1280w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-11-1024x768.png 1024w, https:\/\/mvermeulen.org\/perf\/wp-content\/uploads\/sites\/7\/2024\/03\/amdtopdown-11-768x576.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p>AMD metrics show a composite of time above with a high retirement rate, very low L2 access and moderate floating point.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>elapsed              4614.176\non_cpu               0.062          # 0.99 \/ 16 cores\nutime                4491.688\nstime                71.636\nnvcsw                2130           # 8.67%\nnivcsw               22440          # 91.33%\ninblock              40             # 0.01\/sec\nonblock              13456          # 2.92\/sec\ncpu-clock            4563847328027  # 4563.847 seconds\ntask-clock           4563881396725  # 4563.881 seconds\npage faults          154861         # 33.932\/sec\ncontext switches     47433          # 10.393\/sec\ncpu migrations       487            # 0.107\/sec\nmajor page faults    2              # 0.000\/sec\nminor page faults    154859         # 33.931\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             5789893124590  # 85.621 branches per 1000 inst\nbranch misses        31078971808    # 0.54% branch miss\nconditional          3613871219875  # 53.442 conditional branches per 1000 inst\nindirect             593046133137   # 8.770 indirect branches per 1000 inst\ncpu-cycles           21357774623017 # 0.29 GHz\ninstructions         67329943777452 # 3.15 IPC high\nslots                42754788897924 #\nretiring             23867981834567 # 55.8% (55.8%) high\n-- ucode             136121249997   #     0.3%\n-- fastpath          23731860584570 #    55.5%\nfrontend             3429779846680  #  8.0% ( 8.0%)\n-- latency           1720307625228  #     4.0%\n-- bandwidth         1709472221452  #     4.0%\nbackend              14666755989532 # 34.3% (34.3%)\n-- cpu               7007591544627  #    16.4%\n-- memory            7659164444905  #    17.9%\nspeculation          788361817288   #  1.8% ( 1.8%)\n-- branch mispredict 730229597536   #     1.7%\n-- pipeline restart  58132219752    #     0.1%\nsmt-contention       1908036767     #  0.0% ( 0.0%)\ncpu-cycles           21382053512225 # 0.29 GHz\ninstructions         67482325548422 # 3.16 IPC high\ninstructions         22516142668079 # 0.409 l2 access per 1000 inst\nl2 hit from l1       9043385311     # 0.42% l2 miss\nl2 miss from l1      26560619       #\nl2 hit from l2 pf    156633725      #\nl3 hit from l2 pf    6342843        #\nl3 miss from l2 pf   5348991        #\ninstructions         22477322361631 # 157.699 float per 1000 inst\nfloat 512            70             # 0.000 AVX-512 per 1000 inst\nfloat 256            592            # 0.000 AVX-256 per 1000 inst\nfloat 128            3544660228636  # 157.699 AVX-128 per 1000 inst\nfloat MMX            0              # 0.000 MMX per 1000 inst\nfloat scalar         0              # 0.000 scalar per 1000 inst\ninstructions         67660090601363 #\nopcache              7884274756157  # 116.528 opcache per 1000 inst\nopcache miss         167387550460   #  2.1% opcache miss rate\nl1 dTLB miss         259601094      # 0.004 L1 dTLB per 1000 inst\nl2 dTLB miss         16186847       # 0.000 L2 dTLB per 1000 inst\ninstructions         67533906040380 #\nicache               291969263562   # 4.323 icache per 1000 inst\nicache miss          34966057596    # 12.0% icache miss rate\nl1 iTLB miss         876689298      # 0.013 L1 iTLB per 1000 inst\nl2 iTLB miss         0              # 0.000 L2 iTLB per 1000 inst\ntlb flush            17675          # 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              4550.013\non_cpu               0.062          # 0.99 \/ 16 cores\nutime                4448.938\nstime                49.145\nnvcsw                1993           # 7.90%\nnivcsw               23241          # 92.10%\ninblock              14968          # 3.29\/sec\nonblock              2216           # 0.49\/sec\ncpu-clock            4498416176788  # 4498.416 seconds\ntask-clock           4498439582280  # 4498.440 seconds\npage faults          145439         # 32.331\/sec\ncontext switches     47777          # 10.621\/sec\ncpu migrations       2283           # 0.508\/sec\nmajor page faults    90             # 0.020\/sec\nminor page faults    145349         # 32.311\/sec\nalignment faults     0              # 0.000\/sec\nemulation faults     0              # 0.000\/sec\nbranches             5166302482442  # 88.345 branches per 1000 inst\nbranch misses        19255392592    # 0.37% branch miss\nconditional          5166302494794  # 88.345 conditional branches per 1000 inst\nindirect             550724717523   # 9.418 indirect branches per 1000 inst\nslots                102305511353450 #\nretiring             60450511192544 # 59.1% (59.1%) high\n-- ucode             6087643284108  #     6.0%\n-- fastpath          54362867908436 #    53.1%\nfrontend             12410187785666 # 12.1% (12.1%)\n-- latency           4685028534180  #     4.6%\n-- bandwidth         7725159251486  #     7.6%\nbackend              33429410663649 # 32.7% (32.7%)\n-- cpu               21585532615300 #    21.1%\n-- memory            11843878048349 #    11.6%\nspeculation          518853703704   #  0.5% ( 0.5%) low\n-- branch mispredict 347239340245   #     0.3%\n-- pipeline restart  171614363459   #     0.2%\nsmt-contention       0              #  0.0% ( 0.0%)\ncpu-cycles           17065464664099 # 0.23 GHz\ninstructions         58523794701375 # 3.43 IPC high\nl2 access            15405968960    # 0.263 l2 access per 1000 inst\nl2 miss              194271575      # 1.26% l2 miss\ncpu-cycles           17064835008985 #  7.0% memory latency\nload stalls          1191866350783  #  7.0% l1 bound\nl1 miss              3223869244     #  0.0% l2 bound\nl2 miss              751143074      #  0.0% l3 bound\nl3 miss              309765400      #  0.0% dram bound\nstore_stalls         917268020      #  0.0% store bound\n<\/code><\/pre>\n\n\n\n<p>Process overview shows time spent in the cryptest,exe<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>244 processes\n\t  5 cryptest.exe          3265.47    25.39\n\t 34 clinfo                   9.58     3.34\n\t 19 vulkaninfo               0.76     0.76\n\t  2 vulkani:disk$0           0.08     0.08\n\t  6 clang                    0.07     0.05\n\t  3 glxinfo:gdrv0            0.04     0.07\n\t  3 glxinfo:gl0              0.04     0.07\n\t  1 llvmpipe-0               0.04     0.04\n\t  1 llvmpipe-1               0.04     0.04\n\t  1 llvmpipe-10              0.04     0.04\n\t  1 llvmpipe-11              0.04     0.04\n\t  1 llvmpipe-12              0.04     0.04\n\t  1 llvmpipe-13              0.04     0.04\n\t  1 llvmpipe-14              0.04     0.04\n\t  1 llvmpipe-15              0.04     0.04\n\t  1 llvmpipe-2               0.04     0.04\n\t  1 llvmpipe-3               0.04     0.04\n\t  1 llvmpipe-4               0.04     0.04\n\t  1 llvmpipe-5               0.04     0.04\n\t  1 llvmpipe-6               0.04     0.04\n\t  1 llvmpipe-7               0.04     0.04\n\t  1 llvmpipe-8               0.04     0.04\n\t  1 llvmpipe-9               0.04     0.04\n\t  1 glxinfo                  0.02     0.03\n\t  1 glxinfo:cs0              0.02     0.03\n\t  1 glxinfo:disk$0           0.02     0.03\n\t  1 glxinfo:sh0              0.02     0.03\n\t  1 glxinfo:shlo0            0.02     0.03\n\t 60 sh                       0.00     0.00\n\t 13 gcc                      0.00     0.00\n\t 13 gsettings                0.00     0.00\n\t  8 systemd-detect-          0.00     0.00\n\t  7 stat                     0.00     0.00\n\t  6 llvm-link                0.00     0.00\n\t  5 cryptopp                 0.00     0.00\n\t  4 phoronix-test-s          0.00     0.00\n\t  2 gmain                    0.00     0.00\n\t  2 which                    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 grep                     0.00     0.00\n\t  1 ifconfig                 0.00     0.00\n\t  1 ip                       0.00     0.00\n\t  1 lscpu                    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\n\t  1 xset                     0.00     0.00\n11 processes running\n47 maximum processes\n<\/code><\/pre>\n\n\n\n<p>Example computation block<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>      872071) cryptopp         cpu=2 start=5.70  finish=711.80\n        872072) cryptest.exe     cpu=4 start=5.70  finish=711.80\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A C++ library of cryptographic algorithms. There are three subtests. These are single-threaded Topdown profile shows some blurring over time with sections of strong branch misses and other sections with high retirement rates. AMD metrics show a composite of time <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/mvermeulen.org\/perf\/workloads\/phoronix\/cryptopp\/\"><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-1918","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1918","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=1918"}],"version-history":[{"count":2,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1918\/revisions"}],"predecessor-version":[{"id":1940,"href":"https:\/\/mvermeulen.org\/perf\/wp-json\/wp\/v2\/pages\/1918\/revisions\/1940"}],"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=1918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}