0. 测试环境
虚拟机平台:Proxmox Virtual Environment
vCPU:4
内存:1.5G
硬盘类型:SSD
QEMU代理:有
OpenSSL:openssl-3.1.5+quic
libressl:3.8.2
测试命令:openssl speed
1. OpenSSL测试结果
Doing md5 for 3s on 16 size blocks: 6518761 md5's in 3.00s
Doing md5 for 3s on 64 size blocks: 4799092 md5's in 3.00s
Doing md5 for 3s on 256 size blocks: 2999692 md5's in 3.00s
Doing md5 for 3s on 1024 size blocks: 1133516 md5's in 3.00s
Doing md5 for 3s on 8192 size blocks: 171201 md5's in 3.00s
Doing md5 for 3s on 16384 size blocks: 80429 md5's in 3.00s
Doing sha1 for 3s on 16 size blocks: 6025331 sha1's in 3.00s
Doing sha1 for 3s on 64 size blocks: 4725889 sha1's in 3.00s
Doing sha1 for 3s on 256 size blocks: 2832156 sha1's in 3.00s
Doing sha1 for 3s on 1024 size blocks: 1078285 sha1's in 3.00s
Doing sha1 for 3s on 8192 size blocks: 160794 sha1's in 3.00s
Doing sha1 for 3s on 16384 size blocks: 81121 sha1's in 3.00s
Doing sha256 for 3s on 16 size blocks: 5022817 sha256's in 3.00s
Doing sha256 for 3s on 64 size blocks: 3206107 sha256's in 3.00s
Doing sha256 for 3s on 256 size blocks: 1594194 sha256's in 3.00s
Doing sha256 for 3s on 1024 size blocks: 522906 sha256's in 3.00s
Doing sha256 for 3s on 8192 size blocks: 72044 sha256's in 3.00s
Doing sha256 for 3s on 16384 size blocks: 36809 sha256's in 3.00s
Doing sha512 for 3s on 16 size blocks: 4074587 sha512's in 3.00s
Doing sha512 for 3s on 64 size blocks: 4027356 sha512's in 3.00s
Doing sha512 for 3s on 256 size blocks: 1971957 sha512's in 3.00s
Doing sha512 for 3s on 1024 size blocks: 773533 sha512's in 3.00s
Doing sha512 for 3s on 8192 size blocks: 116515 sha512's in 3.00s
Doing sha512 for 3s on 16384 size blocks: 59183 sha512's in 3.00s
Doing rmd160 for 3s on 16 size blocks: 4577052 rmd160's in 3.00s
Doing rmd160 for 3s on 64 size blocks: 3210431 rmd160's in 3.00s
Doing rmd160 for 3s on 256 size blocks: 1625899 rmd160's in 3.00s
Doing rmd160 for 3s on 1024 size blocks: 551096 rmd160's in 3.00s
Doing rmd160 for 3s on 8192 size blocks: 75793 rmd160's in 3.00s
Doing rmd160 for 3s on 16384 size blocks: 35702 rmd160's in 3.00s
Doing hmac(md5) for 3s on 16 size blocks: 3740589 hmac(md5)'s in 2.99s
Doing hmac(md5) for 3s on 64 size blocks: 3152955 hmac(md5)'s in 3.00s
Doing hmac(md5) for 3s on 256 size blocks: 2359955 hmac(md5)'s in 3.00s
Doing hmac(md5) for 3s on 1024 size blocks: 977343 hmac(md5)'s in 3.00s
Doing hmac(md5) for 3s on 8192 size blocks: 162277 hmac(md5)'s in 3.00s
Doing hmac(md5) for 3s on 16384 size blocks: 78578 hmac(md5)'s in 3.00s
Doing des-ede3 for 3s on 16 size blocks: 3084982 des-ede3's in 3.00s
Doing des-ede3 for 3s on 64 size blocks: 792140 des-ede3's in 3.00s
Doing des-ede3 for 3s on 256 size blocks: 200356 des-ede3's in 3.00s
Doing des-ede3 for 3s on 1024 size blocks: 50116 des-ede3's in 3.00s
Doing des-ede3 for 3s on 8192 size blocks: 6270 des-ede3's in 3.00s
Doing des-ede3 for 3s on 16384 size blocks: 3135 des-ede3's in 3.00s
Doing aes-128-cbc for 3s on 16 size blocks: 50603900 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 16235512 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 256 size blocks: 4741940 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 1024 size blocks: 1235933 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 8192 size blocks: 156510 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 16384 size blocks: 78322 aes-128-cbc's in 3.00s
Doing aes-192-cbc for 3s on 16 size blocks: 45232843 aes-192-cbc's in 3.00s
Doing aes-192-cbc for 3s on 64 size blocks: 14100401 aes-192-cbc's in 3.00s
Doing aes-192-cbc for 3s on 256 size blocks: 4007130 aes-192-cbc's in 3.00s
Doing aes-192-cbc for 3s on 1024 size blocks: 1033575 aes-192-cbc's in 3.00s
Doing aes-192-cbc for 3s on 8192 size blocks: 131188 aes-192-cbc's in 3.00s
Doing aes-192-cbc for 3s on 16384 size blocks: 65514 aes-192-cbc's in 3.00s
Doing aes-256-cbc for 3s on 16 size blocks: 40680621 aes-256-cbc's in 3.00s
Doing aes-256-cbc for 3s on 64 size blocks: 12431500 aes-256-cbc's in 3.00s
Doing aes-256-cbc for 3s on 256 size blocks: 3457601 aes-256-cbc's in 3.00s
Doing aes-256-cbc for 3s on 1024 size blocks: 892860 aes-256-cbc's in 3.00s
Doing aes-256-cbc for 3s on 8192 size blocks: 112596 aes-256-cbc's in 3.00s
Doing aes-256-cbc for 3s on 16384 size blocks: 56312 aes-256-cbc's in 3.00s
Doing camellia-128-cbc for 3s on 16 size blocks: 15127655 camellia-128-cbc's in 3.00s
Doing camellia-128-cbc for 3s on 64 size blocks: 4884170 camellia-128-cbc's in 3.00s
Doing camellia-128-cbc for 3s on 256 size blocks: 1330629 camellia-128-cbc's in 3.00s
Doing camellia-128-cbc for 3s on 1024 size blocks: 342476 camellia-128-cbc's in 3.00s
Doing camellia-128-cbc for 3s on 8192 size blocks: 42796 camellia-128-cbc's in 3.00s
Doing camellia-128-cbc for 3s on 16384 size blocks: 21546 camellia-128-cbc's in 3.00s
Doing camellia-192-cbc for 3s on 16 size blocks: 10877010 camellia-192-cbc's in 3.00s
Doing camellia-192-cbc for 3s on 64 size blocks: 3788889 camellia-192-cbc's in 3.00s
Doing camellia-192-cbc for 3s on 256 size blocks: 1014190 camellia-192-cbc's in 3.00s
Doing camellia-192-cbc for 3s on 1024 size blocks: 258701 camellia-192-cbc's in 3.00s
Doing camellia-192-cbc for 3s on 8192 size blocks: 32327 camellia-192-cbc's in 3.00s
Doing camellia-192-cbc for 3s on 16384 size blocks: 16112 camellia-192-cbc's in 3.00s
Doing camellia-256-cbc for 3s on 16 size blocks: 12259752 camellia-256-cbc's in 3.00s
Doing camellia-256-cbc for 3s on 64 size blocks: 3788990 camellia-256-cbc's in 3.00s
Doing camellia-256-cbc for 3s on 256 size blocks: 1013080 camellia-256-cbc's in 3.00s
Doing camellia-256-cbc for 3s on 1024 size blocks: 259193 camellia-256-cbc's in 3.00s
Doing camellia-256-cbc for 3s on 8192 size blocks: 32392 camellia-256-cbc's in 3.00s
Doing camellia-256-cbc for 3s on 16384 size blocks: 16235 camellia-256-cbc's in 3.00s
Doing ghash for 3s on 16 size blocks: 44416984 ghash's in 3.00s
Doing ghash for 3s on 64 size blocks: 31407454 ghash's in 3.00s
Doing ghash for 3s on 256 size blocks: 14039497 ghash's in 3.00s
Doing ghash for 3s on 1024 size blocks: 4379621 ghash's in 3.00s
Doing ghash for 3s on 8192 size blocks: 590249 ghash's in 3.00s
Doing ghash for 3s on 16384 size blocks: 294712 ghash's in 3.00s
Doing rand for 3s on 16 size blocks: 1691378 rand's in 2.69s
Doing rand for 3s on 64 size blocks: 1677212 rand's in 2.65s
Doing rand for 3s on 256 size blocks: 1584239 rand's in 2.65s
Doing rand for 3s on 1024 size blocks: 1330642 rand's in 2.64s
Doing rand for 3s on 8192 size blocks: 513284 rand's in 2.85s
Doing rand for 3s on 16384 size blocks: 298995 rand's in 2.92s
Doing 512 bits private rsa's for 10s: 93123 512 bits private RSA's in 10.00s
Doing 512 bits public rsa's for 10s: 1404551 512 bits public RSA's in 10.00s
Doing 1024 bits private rsa's for 10s: 27136 1024 bits private RSA's in 10.00s
Doing 1024 bits public rsa's for 10s: 489612 1024 bits public RSA's in 10.00s
Doing 2048 bits private rsa's for 10s: 3922 2048 bits private RSA's in 10.00s
Doing 2048 bits public rsa's for 10s: 138181 2048 bits public RSA's in 10.00s
Doing 3072 bits private rsa's for 10s: 1260 3072 bits private RSA's in 10.01s
Doing 3072 bits public rsa's for 10s: 64736 3072 bits public RSA's in 10.00s
Doing 4096 bits private rsa's for 10s: 551 4096 bits private RSA's in 10.00s
Doing 4096 bits public rsa's for 10s: 37456 4096 bits public RSA's in 10.00s
Doing 7680 bits private rsa's for 10s: 72 7680 bits private RSA's in 10.08s
Doing 7680 bits public rsa's for 10s: 10988 7680 bits public RSA's in 10.00s
Doing 15360 bits private rsa's for 10s: 12 15360 bits private RSA's in 10.29s
Doing 15360 bits public rsa's for 10s: 2812 15360 bits public RSA's in 10.00s
Doing 512 bits sign dsa's for 10s: 61412 512 bits DSA signs in 9.98s
Doing 512 bits verify dsa's for 10s: 97171 512 bits DSA verify in 10.00s
Doing 1024 bits sign dsa's for 10s: 29409 1024 bits DSA signs in 9.98s
Doing 1024 bits verify dsa's for 10s: 36835 1024 bits DSA verify in 10.01s
Doing 2048 bits sign dsa's for 10s: 9776 2048 bits DSA signs in 9.99s
Doing 2048 bits verify dsa's for 10s: 10980 2048 bits DSA verify in 10.00s
Doing 160 bits sign ecdsa's for 10s: 19946 160 bits ECDSA signs in 9.98s
Doing 160 bits verify ecdsa's for 10s: 21722 160 bits ECDSA verify in 10.00s
Doing 192 bits sign ecdsa's for 10s: 16282 192 bits ECDSA signs in 9.97s
Doing 192 bits verify ecdsa's for 10s: 18113 192 bits ECDSA verify in 10.00s
Doing 224 bits sign ecdsa's for 10s: 10931 224 bits ECDSA signs in 9.97s
Doing 224 bits verify ecdsa's for 10s: 12409 224 bits ECDSA verify in 9.99s
Doing 256 bits sign ecdsa's for 10s: 152040 256 bits ECDSA signs in 9.94s
Doing 256 bits verify ecdsa's for 10s: 47691 256 bits ECDSA verify in 10.00s
Doing 384 bits sign ecdsa's for 10s: 4009 384 bits ECDSA signs in 9.99s
Doing 384 bits verify ecdsa's for 10s: 5042 384 bits ECDSA verify in 10.00s
Doing 521 bits sign ecdsa's for 10s: 1695 521 bits ECDSA signs in 10.00s
Doing 521 bits verify ecdsa's for 10s: 2211 521 bits ECDSA verify in 10.00s
Doing 163 bits sign ecdsa's for 10s: 21379 163 bits ECDSA signs in 9.98s
Doing 163 bits verify ecdsa's for 10s: 10912 163 bits ECDSA verify in 9.97s
Doing 233 bits sign ecdsa's for 10s: 16569 233 bits ECDSA signs in 9.98s
Doing 233 bits verify ecdsa's for 10s: 8504 233 bits ECDSA verify in 9.98s
Doing 283 bits sign ecdsa's for 10s: 9297 283 bits ECDSA signs in 9.98s
Doing 283 bits verify ecdsa's for 10s: 4840 283 bits ECDSA verify in 9.97s
Doing 409 bits sign ecdsa's for 10s: 5529 409 bits ECDSA signs in 9.99s
Doing 409 bits verify ecdsa's for 10s: 2874 409 bits ECDSA verify in 10.00s
Doing 571 bits sign ecdsa's for 10s: 2632 571 bits ECDSA signs in 9.99s
Doing 571 bits verify ecdsa's for 10s: 1354 571 bits ECDSA verify in 10.00s
Doing 163 bits sign ecdsa's for 10s: 20386 163 bits ECDSA signs in 9.97s
Doing 163 bits verify ecdsa's for 10s: 10488 163 bits ECDSA verify in 9.98s
Doing 233 bits sign ecdsa's for 10s: 16166 233 bits ECDSA signs in 9.98s
Doing 233 bits verify ecdsa's for 10s: 8229 233 bits ECDSA verify in 9.98s
Doing 283 bits sign ecdsa's for 10s: 9001 283 bits ECDSA signs in 9.97s
Doing 283 bits verify ecdsa's for 10s: 4634 283 bits ECDSA verify in 10.00s
Doing 409 bits sign ecdsa's for 10s: 5252 409 bits ECDSA signs in 9.98s
Doing 409 bits verify ecdsa's for 10s: 2736 409 bits ECDSA verify in 10.00s
Doing 571 bits sign ecdsa's for 10s: 2420 571 bits ECDSA signs in 10.00s
Doing 571 bits verify ecdsa's for 10s: 1258 571 bits ECDSA verify in 9.99s
Doing 256 bits sign ecdsa's for 10s: 9844 256 bits ECDSA signs in 9.99s
Doing 256 bits verify ecdsa's for 10s: 10533 256 bits ECDSA verify in 9.99s
Doing 256 bits sign ecdsa's for 10s: 9693 256 bits ECDSA signs in 9.98s
Doing 256 bits verify ecdsa's for 10s: 10778 256 bits ECDSA verify in 9.99s
Doing 384 bits sign ecdsa's for 10s: 4061 384 bits ECDSA signs in 10.00s
Doing 384 bits verify ecdsa's for 10s: 4744 384 bits ECDSA verify in 10.00s
Doing 384 bits sign ecdsa's for 10s: 4094 384 bits ECDSA signs in 9.99s
Doing 384 bits verify ecdsa's for 10s: 5054 384 bits ECDSA verify in 10.00s
Doing 512 bits sign ecdsa's for 10s: 2263 512 bits ECDSA signs in 9.99s
Doing 512 bits verify ecdsa's for 10s: 2751 512 bits ECDSA verify in 10.00s
Doing 512 bits sign ecdsa's for 10s: 2280 512 bits ECDSA signs in 10.00s
Doing 512 bits verify ecdsa's for 10s: 2942 512 bits ECDSA verify in 10.00s
Doing 160 bits ecdh's for 10s: 21115 160-bits ECDH ops in 9.97s
Doing 192 bits ecdh's for 10s: 17147 192-bits ECDH ops in 9.99s
Doing 224 bits ecdh's for 10s: 11512 224-bits ECDH ops in 9.99s
Doing 256 bits ecdh's for 10s: 62513 256-bits ECDH ops in 10.00s
Doing 384 bits ecdh's for 10s: 4234 384-bits ECDH ops in 10.00s
Doing 521 bits ecdh's for 10s: 1800 521-bits ECDH ops in 10.00s
Doing 163 bits ecdh's for 10s: 22436 163-bits ECDH ops in 9.99s
Doing 233 bits ecdh's for 10s: 18047 233-bits ECDH ops in 9.98s
Doing 283 bits ecdh's for 10s: 10066 283-bits ECDH ops in 9.99s
Doing 409 bits ecdh's for 10s: 6008 409-bits ECDH ops in 10.00s
Doing 571 bits ecdh's for 10s: 2861 571-bits ECDH ops in 10.00s
Doing 163 bits ecdh's for 10s: 21930 163-bits ECDH ops in 9.97s
Doing 233 bits ecdh's for 10s: 17519 233-bits ECDH ops in 9.98s
Doing 283 bits ecdh's for 10s: 9602 283-bits ECDH ops in 9.98s
Doing 409 bits ecdh's for 10s: 5684 409-bits ECDH ops in 10.00s
Doing 571 bits ecdh's for 10s: 2614 571-bits ECDH ops in 10.00s
Doing 256 bits ecdh's for 10s: 10330 256-bits ECDH ops in 9.99s
Doing 256 bits ecdh's for 10s: 10412 256-bits ECDH ops in 9.99s
Doing 384 bits ecdh's for 10s: 4262 384-bits ECDH ops in 10.00s
Doing 384 bits ecdh's for 10s: 4304 384-bits ECDH ops in 10.00s
Doing 512 bits ecdh's for 10s: 2362 512-bits ECDH ops in 10.00s
Doing 512 bits ecdh's for 10s: 2396 512-bits ECDH ops in 9.99s
Doing 253 bits ecdh's for 10s: 66074 253-bits ECDH ops in 10.00s
Doing 448 bits ecdh's for 10s: 18305 448-bits ECDH ops in 10.00s
Doing 253 bits sign Ed25519's for 10s: 62232 253 bits Ed25519 signs in 10.00s
Doing 253 bits verify Ed25519's for 10s: 19478 253 bits Ed25519 verify in 10.00s
Doing 456 bits sign Ed448's for 10s: 60112 456 bits Ed448 signs in 10.00s
Doing 456 bits verify Ed448's for 10s: 17053 456 bits Ed448 verify in 10.00s
Doing 256 bits sign CurveSM2's for 10s: 9792 256 bits CurveSM2 signs in 10.00s
Doing 256 bits verify CurveSM2's for 10s: 11521 256 bits CurveSM2 verify in 9.99s
Doing 2048 bits ffdh's for 10s: 8162 2048-bits FFDH ops in 9.99s
Doing 3072 bits ffdh's for 10s: 3083 3072-bits FFDH ops in 9.99s
Doing 4096 bits ffdh's for 10s: 1503 4096-bits FFDH ops in 10.00s
Doing 6144 bits ffdh's for 10s: 681 6144-bits FFDH ops in 10.01s
Doing 8192 bits ffdh's for 10s: 335 8192-bits FFDH ops in 10.03s
version: 3.1.4+quic
built on: Sun Dec 24 03:46:21 2023 UTC
options: bn(64,64)
compiler: clang -fPIC -pthread -m64 -Wa,--noexecstack -Qunused-arguments -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL
-DNDEBUG -DPURIFY
CPUINFO: OPENSSL_ia32cap=0xbfb83a03078bffff:0xa
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
md5 34766.73k 102380.63k 255973.72k 386906.79k 467492.86k 439249.58k
sha1 32135.10k 100818.97k 241677.31k 368054.61k 439074.82k 443028.82k
rmd160 24410.94k 68489.19k 138743.38k 188107.43k 206965.42k 194980.52k
sha256 26788.36k 68396.95k 136037.89k 178485.25k 196728.15k 201026.22k
sha512 21731.13k 85916.93k 168273.66k 264032.60k 318163.63k 323218.09k
hmac(md5) 20016.53k 67263.04k 201382.83k 333599.74k 443124.39k 429140.65k
des-ede3 16453.24k 16898.99k 17097.05k 17106.26k 17121.28k 17121.28k
aes-128-cbc 269887.47k 346357.59k 404645.55k 421865.13k 427376.64k 427742.55k
aes-192-cbc 241241.83k 300808.55k 341941.76k 352793.60k 358230.70k 357793.79k
aes-256-cbc 216963.31k 265205.33k 295048.62k 304762.88k 307462.14k 307538.60k
camellia-128-cbc 80680.83k 104195.63k 113547.01k 116898.47k 116861.61k 117669.89k
camellia-192-cbc 58010.72k 80829.63k 86544.21k 88303.27k 88274.26k 87993.00k
camellia-256-cbc 65385.34k 80831.79k 86449.49k 88471.21k 88451.75k 88664.75k
ghash 236890.58k 670025.69k 1198037.08k 1494910.63k 1611773.27k 1609520.47k
rand 10060.24k 40506.25k 153043.47k 516127.81k 1475376.33k 1677648.66k
sign verify sign/s verify/s
rsa 512 bits 0.000107s 0.000007s 9312.3 140455.1
rsa 1024 bits 0.000369s 0.000020s 2713.6 48961.2
rsa 2048 bits 0.002550s 0.000072s 392.2 13818.1
rsa 3072 bits 0.007944s 0.000154s 125.9 6473.6
rsa 4096 bits 0.018149s 0.000267s 55.1 3745.6
rsa 7680 bits 0.140000s 0.000910s 7.1 1098.8
rsa 15360 bits 0.857500s 0.003556s 1.2 281.2
sign verify sign/s verify/s
dsa 512 bits 0.000163s 0.000103s 6153.5 9717.1
dsa 1024 bits 0.000339s 0.000272s 2946.8 3679.8
dsa 2048 bits 0.001022s 0.000911s 978.6 1098.0
sign verify sign/s verify/s
160 bits ecdsa (secp160r1) 0.0005s 0.0005s 1998.6 2172.2
192 bits ecdsa (nistp192) 0.0006s 0.0006s 1633.1 1811.3
224 bits ecdsa (nistp224) 0.0009s 0.0008s 1096.4 1242.1
256 bits ecdsa (nistp256) 0.0001s 0.0002s 15295.8 4769.1
384 bits ecdsa (nistp384) 0.0025s 0.0020s 401.3 504.2
521 bits ecdsa (nistp521) 0.0059s 0.0045s 169.5 221.1
163 bits ecdsa (nistk163) 0.0005s 0.0009s 2142.2 1094.5
233 bits ecdsa (nistk233) 0.0006s 0.0012s 1660.2 852.1
283 bits ecdsa (nistk283) 0.0011s 0.0021s 931.6 485.5
409 bits ecdsa (nistk409) 0.0018s 0.0035s 553.5 287.4
571 bits ecdsa (nistk571) 0.0038s 0.0074s 263.5 135.4
163 bits ecdsa (nistb163) 0.0005s 0.0010s 2044.7 1050.9
233 bits ecdsa (nistb233) 0.0006s 0.0012s 1619.8 824.5
283 bits ecdsa (nistb283) 0.0011s 0.0022s 902.8 463.4
409 bits ecdsa (nistb409) 0.0019s 0.0037s 526.3 273.6
571 bits ecdsa (nistb571) 0.0041s 0.0079s 242.0 125.9
256 bits ecdsa (brainpoolP256r1) 0.0010s 0.0009s 985.4 1054.4
256 bits ecdsa (brainpoolP256t1) 0.0010s 0.0009s 971.2 1078.9
384 bits ecdsa (brainpoolP384r1) 0.0025s 0.0021s 406.1 474.4
384 bits ecdsa (brainpoolP384t1) 0.0024s 0.0020s 409.8 505.4
512 bits ecdsa (brainpoolP512r1) 0.0044s 0.0036s 226.5 275.1
512 bits ecdsa (brainpoolP512t1) 0.0044s 0.0034s 228.0 294.2
op op/s
160 bits ecdh (secp160r1) 0.0005s 2117.9
192 bits ecdh (nistp192) 0.0006s 1716.4
224 bits ecdh (nistp224) 0.0009s 1152.4
256 bits ecdh (nistp256) 0.0002s 6251.3
384 bits ecdh (nistp384) 0.0024s 423.4
521 bits ecdh (nistp521) 0.0056s 180.0
163 bits ecdh (nistk163) 0.0004s 2245.8
233 bits ecdh (nistk233) 0.0006s 1808.3
283 bits ecdh (nistk283) 0.0010s 1007.6
409 bits ecdh (nistk409) 0.0017s 600.8
571 bits ecdh (nistk571) 0.0035s 286.1
163 bits ecdh (nistb163) 0.0005s 2199.6
233 bits ecdh (nistb233) 0.0006s 1755.4
283 bits ecdh (nistb283) 0.0010s 962.1
409 bits ecdh (nistb409) 0.0018s 568.4
571 bits ecdh (nistb571) 0.0038s 261.4
256 bits ecdh (brainpoolP256r1) 0.0010s 1034.0
256 bits ecdh (brainpoolP256t1) 0.0010s 1042.2
384 bits ecdh (brainpoolP384r1) 0.0023s 426.2
384 bits ecdh (brainpoolP384t1) 0.0023s 430.4
512 bits ecdh (brainpoolP512r1) 0.0042s 236.2
512 bits ecdh (brainpoolP512t1) 0.0042s 239.8
253 bits ecdh (X25519) 0.0002s 6607.4
448 bits ecdh (X448) 0.0005s 1830.5
sign verify sign/s verify/s
253 bits EdDSA (Ed25519) 0.0002s 0.0005s 6223.2 1947.8
456 bits EdDSA (Ed448) 0.0002s 0.0006s 6011.2 1705.3
sign verify sign/s verify/s
256 bits SM2 (CurveSM2) 0.0010s 0.0009s 979.2 1153.3
op op/s
2048 bits ffdh 0.0012s 817.0
3072 bits ffdh 0.0032s 308.6
4096 bits ffdh 0.0067s 150.3
6144 bits ffdh 0.0147s 68.0
8192 bits ffdh 0.0299s 33.4
相对libressl而言,支持的算法更多,但是移除了md4(应该不会有人还在用md4吧)。
2. libressl测试结果
Doing md4 for 3s on 16 size blocks: 3182353 md4 in 3.00s
Doing md4 for 3s on 64 size blocks: 1826919 md4 in 3.00s
Doing md4 for 3s on 256 size blocks: 802484 md4 in 3.00s
Doing md4 for 3s on 1024 size blocks: 248104 md4 in 3.00s
Doing md4 for 3s on 8192 size blocks: 33263 md4 in 3.00s
Doing md5 for 3s on 16 size blocks: 5246952 md5 in 3.00s
Doing md5 for 3s on 64 size blocks: 3988664 md5 in 3.00s
Doing md5 for 3s on 256 size blocks: 2633048 md5 in 3.00s
Doing md5 for 3s on 1024 size blocks: 1131067 md5 in 3.00s
Doing md5 for 3s on 8192 size blocks: 177801 md5 in 3.00s
Doing hmac(md5) for 3s on 16 size blocks: 4567104 hmac(md5) in 3.00s
Doing hmac(md5) for 3s on 64 size blocks: 3528493 hmac(md5) in 3.00s
Doing hmac(md5) for 3s on 256 size blocks: 2453700 hmac(md5) in 3.00s
Doing hmac(md5) for 3s on 1024 size blocks: 1090794 hmac(md5) in 3.00s
Doing hmac(md5) for 3s on 8192 size blocks: 176873 hmac(md5) in 3.00s
Doing sha1 for 3s on 16 size blocks: 6981339 sha1 in 3.00s
Doing sha1 for 3s on 64 size blocks: 5015243 sha1 in 3.00s
Doing sha1 for 3s on 256 size blocks: 2912694 sha1 in 3.00s
Doing sha1 for 3s on 1024 size blocks: 1094079 sha1 in 3.00s
Doing sha1 for 3s on 8192 size blocks: 159087 sha1 in 3.00s
Doing sha256 for 3s on 16 size blocks: 4271875 sha256 in 3.00s
Doing sha256 for 3s on 64 size blocks: 2500069 sha256 in 3.00s
Doing sha256 for 3s on 256 size blocks: 1108990 sha256 in 3.00s
Doing sha256 for 3s on 1024 size blocks: 343714 sha256 in 3.00s
Doing sha256 for 3s on 8192 size blocks: 46286 sha256 in 3.00s
Doing sha512 for 3s on 16 size blocks: 3299139 sha512 in 3.00s
Doing sha512 for 3s on 64 size blocks: 3327135 sha512 in 3.00s
Doing sha512 for 3s on 256 size blocks: 1378691 sha512 in 3.00s
Doing sha512 for 3s on 1024 size blocks: 504079 sha512 in 3.00s
Doing sha512 for 3s on 8192 size blocks: 72870 sha512 in 3.00s
Doing whirlpool for 3s on 16 size blocks: 2510765 whirlpool in 3.00s
Doing whirlpool for 3s on 64 size blocks: 1426176 whirlpool in 3.00s
Doing whirlpool for 3s on 256 size blocks: 614130 whirlpool in 3.00s
Doing whirlpool for 3s on 1024 size blocks: 188727 whirlpool in 3.00s
Doing whirlpool for 3s on 8192 size blocks: 25313 whirlpool in 3.00s
Doing rmd160 for 3s on 16 size blocks: 987990 rmd160 in 3.00s
Doing rmd160 for 3s on 64 size blocks: 523408 rmd160 in 3.00s
Doing rmd160 for 3s on 256 size blocks: 216822 rmd160 in 3.00s
Doing rmd160 for 3s on 1024 size blocks: 64806 rmd160 in 3.00s
Doing rmd160 for 3s on 8192 size blocks: 8607 rmd160 in 3.00s
Doing rc4 for 3s on 16 size blocks: 64289246 rc4 in 3.00s
Doing rc4 for 3s on 64 size blocks: 22374945 rc4 in 3.00s
Doing rc4 for 3s on 256 size blocks: 6044046 rc4 in 3.00s
Doing rc4 for 3s on 1024 size blocks: 1586882 rc4 in 3.00s
Doing rc4 for 3s on 8192 size blocks: 198552 rc4 in 3.00s
Doing des cbc for 3s on 16 size blocks: 2424480 des cbc in 3.00s
Doing des cbc for 3s on 64 size blocks: 632226 des cbc in 3.00s
Doing des cbc for 3s on 256 size blocks: 159688 des cbc in 3.00s
Doing des cbc for 3s on 1024 size blocks: 40054 des cbc in 3.00s
Doing des cbc for 3s on 8192 size blocks: 5012 des cbc in 3.00s
Doing des ede3 for 3s on 16 size blocks: 1009462 des ede3 in 3.00s
Doing des ede3 for 3s on 64 size blocks: 256629 des ede3 in 3.00s
Doing des ede3 for 3s on 256 size blocks: 64375 des ede3 in 3.00s
Doing des ede3 for 3s on 1024 size blocks: 16119 des ede3 in 3.00s
Doing des ede3 for 3s on 8192 size blocks: 2019 des ede3 in 3.00s
Doing aes-128 cbc for 3s on 16 size blocks: 12042797 aes-128 cbc in 3.00s
Doing aes-128 cbc for 3s on 64 size blocks: 3277171 aes-128 cbc in 3.00s
Doing aes-128 cbc for 3s on 256 size blocks: 850310 aes-128 cbc in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 477672 aes-128 cbc in 3.00s
Doing aes-128 cbc for 3s on 8192 size blocks: 60707 aes-128 cbc in 3.00s
Doing aes-192 cbc for 3s on 16 size blocks: 10239559 aes-192 cbc in 3.00s
Doing aes-192 cbc for 3s on 64 size blocks: 2761563 aes-192 cbc in 3.00s
Doing aes-192 cbc for 3s on 256 size blocks: 706144 aes-192 cbc in 3.00s
Doing aes-192 cbc for 3s on 1024 size blocks: 404547 aes-192 cbc in 3.00s
Doing aes-192 cbc for 3s on 8192 size blocks: 50977 aes-192 cbc in 3.00s
Doing aes-256 cbc for 3s on 16 size blocks: 8878384 aes-256 cbc in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 2360196 aes-256 cbc in 3.00s
Doing aes-256 cbc for 3s on 256 size blocks: 607506 aes-256 cbc in 3.00s
Doing aes-256 cbc for 3s on 1024 size blocks: 348548 aes-256 cbc in 3.00s
Doing aes-256 cbc for 3s on 8192 size blocks: 43777 aes-256 cbc in 3.00s
Doing aes-128 ige for 3s on 16 size blocks: 11448684 aes-128 ige in 3.00s
Doing aes-128 ige for 3s on 64 size blocks: 2969879 aes-128 ige in 3.00s
Doing aes-128 ige for 3s on 256 size blocks: 749146 aes-128 ige in 3.00s
Doing aes-128 ige for 3s on 1024 size blocks: 189170 aes-128 ige in 3.00s
Doing aes-128 ige for 3s on 8192 size blocks: 23822 aes-128 ige in 3.00s
Doing aes-192 ige for 3s on 16 size blocks: 9714027 aes-192 ige in 3.00s
Doing aes-192 ige for 3s on 64 size blocks: 2515493 aes-192 ige in 3.00s
Doing aes-192 ige for 3s on 256 size blocks: 636001 aes-192 ige in 3.00s
Doing aes-192 ige for 3s on 1024 size blocks: 161071 aes-192 ige in 3.00s
Doing aes-192 ige for 3s on 8192 size blocks: 20048 aes-192 ige in 3.00s
Doing aes-256 ige for 3s on 16 size blocks: 8492741 aes-256 ige in 3.00s
Doing aes-256 ige for 3s on 64 size blocks: 2204493 aes-256 ige in 3.00s
Doing aes-256 ige for 3s on 256 size blocks: 550983 aes-256 ige in 3.00s
Doing aes-256 ige for 3s on 1024 size blocks: 139767 aes-256 ige in 3.00s
Doing aes-256 ige for 3s on 8192 size blocks: 17518 aes-256 ige in 3.00s
Doing ghash for 3s on 16 size blocks: 76323111 ghash in 3.00s
Doing ghash for 3s on 64 size blocks: 38911235 ghash in 3.00s
Doing ghash for 3s on 256 size blocks: 13068850 ghash in 3.00s
Doing ghash for 3s on 1024 size blocks: 3569258 ghash in 3.00s
Doing ghash for 3s on 8192 size blocks: 466554 ghash in 3.00s
Doing aes-128 gcm for 3s on 16 size blocks: 10319906 aes-128 gcm in 3.00s
Doing aes-128 gcm for 3s on 64 size blocks: 9042209 aes-128 gcm in 3.00s
Doing aes-128 gcm for 3s on 256 size blocks: 5393457 aes-128 gcm in 3.00s
Doing aes-128 gcm for 3s on 1024 size blocks: 2048021 aes-128 gcm in 3.00s
Doing aes-128 gcm for 3s on 8192 size blocks: 308270 aes-128 gcm in 3.00s
Doing aes-256 gcm for 3s on 16 size blocks: 9510212 aes-256 gcm in 3.00s
Doing aes-256 gcm for 3s on 64 size blocks: 8258626 aes-256 gcm in 3.00s
Doing aes-256 gcm for 3s on 256 size blocks: 4889571 aes-256 gcm in 3.00s
Doing aes-256 gcm for 3s on 1024 size blocks: 1801326 aes-256 gcm in 3.00s
Doing aes-256 gcm for 3s on 8192 size blocks: 272123 aes-256 gcm in 3.00s
Doing chacha20 poly1305 for 3s on 16 size blocks: 535531 chacha20 poly1305 in 3.00s
Doing chacha20 poly1305 for 3s on 64 size blocks: 526205 chacha20 poly1305 in 3.00s
Doing chacha20 poly1305 for 3s on 256 size blocks: 227966 chacha20 poly1305 in 3.00s
Doing chacha20 poly1305 for 3s on 1024 size blocks: 70345 chacha20 poly1305 in 3.00s
Doing chacha20 poly1305 for 3s on 8192 size blocks: 9417 chacha20 poly1305 in 3.00s
Doing camellia-128 cbc for 3s on 16 size blocks: 15208450 camellia-128 cbc in 3.00s
Doing camellia-128 cbc for 3s on 64 size blocks: 4879457 camellia-128 cbc in 3.00s
Doing camellia-128 cbc for 3s on 256 size blocks: 1326219 camellia-128 cbc in 3.00s
Doing camellia-128 cbc for 3s on 1024 size blocks: 341832 camellia-128 cbc in 3.00s
Doing camellia-128 cbc for 3s on 8192 size blocks: 43017 camellia-128 cbc in 3.00s
Doing camellia-192 cbc for 3s on 16 size blocks: 12603675 camellia-192 cbc in 3.00s
Doing camellia-192 cbc for 3s on 64 size blocks: 3822514 camellia-192 cbc in 3.00s
Doing camellia-192 cbc for 3s on 256 size blocks: 1013700 camellia-192 cbc in 3.00s
Doing camellia-192 cbc for 3s on 1024 size blocks: 257669 camellia-192 cbc in 3.00s
Doing camellia-192 cbc for 3s on 8192 size blocks: 32489 camellia-192 cbc in 3.00s
Doing camellia-256 cbc for 3s on 16 size blocks: 12152876 camellia-256 cbc in 3.00s
Doing camellia-256 cbc for 3s on 64 size blocks: 3807144 camellia-256 cbc in 3.00s
Doing camellia-256 cbc for 3s on 256 size blocks: 1016366 camellia-256 cbc in 3.00s
Doing camellia-256 cbc for 3s on 1024 size blocks: 258921 camellia-256 cbc in 3.00s
Doing camellia-256 cbc for 3s on 8192 size blocks: 32392 camellia-256 cbc in 3.00s
Doing idea cbc for 3s on 16 size blocks: 2431599 idea cbc in 3.00s
Doing idea cbc for 3s on 64 size blocks: 630309 idea cbc in 3.00s
Doing idea cbc for 3s on 256 size blocks: 159017 idea cbc in 3.00s
Doing idea cbc for 3s on 1024 size blocks: 39897 idea cbc in 3.00s
Doing idea cbc for 3s on 8192 size blocks: 4947 idea cbc in 3.00s
Doing rc2 cbc for 3s on 16 size blocks: 1762759 rc2 cbc in 3.00s
Doing rc2 cbc for 3s on 64 size blocks: 453234 rc2 cbc in 3.00s
Doing rc2 cbc for 3s on 256 size blocks: 114618 rc2 cbc in 3.00s
Doing rc2 cbc for 3s on 1024 size blocks: 28636 rc2 cbc in 3.00s
Doing rc2 cbc for 3s on 8192 size blocks: 3562 rc2 cbc in 3.00s
Doing blowfish cbc for 3s on 16 size blocks: 4958238 blowfish cbc in 3.00s
Doing blowfish cbc for 3s on 64 size blocks: 1346241 blowfish cbc in 3.00s
Doing blowfish cbc for 3s on 256 size blocks: 343556 blowfish cbc in 3.00s
Doing blowfish cbc for 3s on 1024 size blocks: 86163 blowfish cbc in 3.00s
Doing blowfish cbc for 3s on 8192 size blocks: 10719 blowfish cbc in 3.00s
Doing cast cbc for 3s on 16 size blocks: 2848707 cast cbc in 3.00s
Doing cast cbc for 3s on 64 size blocks: 746624 cast cbc in 3.00s
Doing cast cbc for 3s on 256 size blocks: 188678 cast cbc in 3.00s
Doing cast cbc for 3s on 1024 size blocks: 47273 cast cbc in 3.00s
Doing cast cbc for 3s on 8192 size blocks: 5867 cast cbc in 3.00s
Doing 512 bit private rsa for 10s: 40604 512 bit private RSA in 10.00s
Doing 512 bit public rsa for 10s: 378683 512 bit public RSA in 10.00s
Doing 1024 bit private rsa for 10s: 18843 1024 bit private RSA in 10.00s
Doing 1024 bit public rsa for 10s: 159699 1024 bit public RSA in 10.00s
Doing 2048 bit private rsa for 10s: 3509 2048 bit private RSA in 10.00s
Doing 2048 bit public rsa for 10s: 54737 2048 bit public RSA in 10.00s
Doing 4096 bit private rsa for 10s: 350 4096 bit private RSA in 10.03s
Doing 4096 bit public rsa for 10s: 16607 4096 bit public RSA in 10.00s
Doing 512 bit sign dsa for 10s: 30397 512 bit DSA signs in 9.94s
Doing 512 bit verify dsa for 10s: 46536 512 bit DSA verify in 10.00s
Doing 1024 bit sign dsa for 10s: 19025 1024 bit DSA signs in 9.97s
Doing 1024 bit verify dsa for 10s: 25135 1024 bit DSA verify in 10.00s
Doing 2048 bit sign dsa for 10s: 8346 2048 bit DSA signs in 9.98s
Doing 2048 bit verify dsa for 10s: 9177 2048 bit DSA verify in 10.00s
Doing 160 bit sign ecdsa for 10s: 6990 160 bit ECDSA signs in 9.98s
Doing 160 bit verify ecdsa for 10s: 9225 160 bit ECDSA verify in 10.00s
Doing 192 bit sign ecdsa for 10s: 5864 192 bit ECDSA signs in 9.98s
Doing 192 bit verify ecdsa for 10s: 7581 192 bit ECDSA verify in 10.00s
Doing 224 bit sign ecdsa for 10s: 4391 224 bit ECDSA signs in 9.99s
Doing 224 bit verify ecdsa for 10s: 5644 224 bit ECDSA verify in 10.00s
Doing 256 bit sign ecdsa for 10s: 3064 256 bit ECDSA signs in 9.97s
Doing 256 bit verify ecdsa for 10s: 3847 256 bit ECDSA verify in 10.00s
Doing 384 bit sign ecdsa for 10s: 1399 384 bit ECDSA signs in 9.99s
Doing 384 bit verify ecdsa for 10s: 2094 384 bit ECDSA verify in 10.00s
Doing 521 bit sign ecdsa for 10s: 740 521 bit ECDSA signs in 9.99s
Doing 521 bit verify ecdsa for 10s: 1072 521 bit ECDSA verify in 10.00s
Doing 160 bit ecdh for 10s: 6063 160-bit ECDH ops in 9.99s
Doing 192 bit ecdh for 10s: 4884 192-bit ECDH ops in 9.98s
Doing 224 bit ecdh for 10s: 3559 224-bit ECDH ops in 9.98s
Doing 256 bit ecdh for 10s: 3252 256-bit ECDH ops in 9.98s
Doing 384 bit ecdh for 10s: 1681 384-bit ECDH ops in 9.99s
Doing 521 bit ecdh for 10s: 943 521-bit ECDH ops in 9.99s
LibreSSL 3.8.2
built on: date not available
compiler: information not available
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
md2 0.00 0.00 0.00 0.00 0.00
md4 16973.12k 38974.45k 68478.36k 84686.25k 90827.26k
md5 27984.09k 85091.02k 224688.56k 386062.50k 486168.67k
hmac(md5) 24357.75k 75275.27k 209377.86k 372324.23k 482970.10k
sha1 37235.10k 106989.85k 248550.22k 373439.53k 434413.42k
rmd160 5269.32k 11165.79k 18502.10k 22120.02k 23502.65k
rc4 342868.66k 477335.34k 515749.82k 541657.17k 542172.10k
des cbc 12930.69k 13487.21k 13626.68k 13671.24k 13684.89k
des ede3 5383.76k 5474.75k 5493.19k 5501.79k 5512.85k
idea cbc 12968.47k 13446.53k 13569.42k 13617.90k 13508.15k
seed cbc 0.00 0.00 0.00 0.00 0.00
rc2 cbc 9401.23k 9669.03k 9780.49k 9774.22k 9726.25k
rc5-32/12 cbc 0.00 0.00 0.00 0.00 0.00
blowfish cbc 26444.28k 28719.65k 29354.66k 29409.76k 29269.50k
cast cbc 15192.36k 15927.90k 16100.23k 16135.66k 16018.79k
aes-128 cbc 64233.26k 69911.30k 72560.75k 163255.87k 165774.12k
aes-192 cbc 54609.80k 58913.99k 60257.08k 138087.45k 139198.46k
aes-256 cbc 47351.60k 50350.65k 51841.22k 118968.31k 119540.28k
camellia-128 cbc 81218.75k 104095.36k 113168.54k 116677.68k 117463.91k
camellia-192 cbc 67219.56k 81545.66k 86502.54k 87950.49k 88716.63k
camellia-256 cbc 64814.34k 81219.02k 86728.68k 88378.07k 88449.72k
sha256 22782.84k 53335.82k 94632.30k 117320.93k 126550.92k
sha512 17595.50k 70977.67k 117648.49k 172054.49k 198982.55k
whirlpool 13390.51k 30425.17k 52404.54k 64418.77k 69118.44k
aes-128 ige 61058.51k 63356.38k 63926.98k 64568.78k 65051.13k
aes-192 ige 51807.73k 53663.74k 54271.18k 54979.27k 54742.27k
aes-256 ige 45294.38k 47028.40k 47017.22k 47706.48k 47832.77k
ghash 407049.67k 830115.48k 1115201.10k 1218293.33k 1273980.10k
aes-128 gcm 55040.18k 192898.79k 460241.05k 699045.95k 841784.02k
aes-256 gcm 50720.18k 176415.07k 417235.60k 614853.02k 743061.35k
chacha20 poly1305 2856.16k 11225.49k 19453.18k 24010.49k 25712.98k
sign verify sign/s verify/s
rsa 512 bits 0.000246s 0.000026s 4062.0 37883.6
rsa 1024 bits 0.000531s 0.000063s 1884.2 15969.9
rsa 2048 bits 0.002850s 0.000183s 350.8 5473.6
rsa 4096 bits 0.028646s 0.000602s 34.9 1660.7
sign verify sign/s verify/s
dsa 512 bits 0.000327s 0.000215s 3056.8 4653.6
dsa 1024 bits 0.000524s 0.000398s 1908.6 2513.4
dsa 2048 bits 0.001196s 0.001090s 835.9 917.7
sign verify sign/s verify/s
160 bit ecdsa (secp160r1) 0.0014s 0.0011s 700.3 922.8
192 bit ecdsa (nistp192) 0.0017s 0.0013s 587.7 758.0
224 bit ecdsa (nistp224) 0.0023s 0.0018s 439.6 564.4
256 bit ecdsa (nistp256) 0.0033s 0.0026s 307.3 384.8
384 bit ecdsa (nistp384) 0.0071s 0.0048s 140.0 209.4
521 bit ecdsa (nistp521) 0.0135s 0.0093s 74.1 107.2
op op/s
160 bit ecdh (secp160r1) 0.0016s 607.2
192 bit ecdh (nistp192) 0.0020s 489.3
224 bit ecdh (nistp224) 0.0028s 356.6
256 bit ecdh (nistp256) 0.0031s 325.7
384 bit ecdh (nistp384) 0.0059s 168.2
521 bit ecdh (nistp521) 0.0106s 94.4
3. 测试结论
基本上来说,openssl-3.1.5+quic的整体性能更好,如果条件允许(主要是硬体性能),应优先考虑采用。
但从兼容性层面来说,libressl兼容性更好,如果要做跨平台的话,libressl是一个更好的选择,而且编译的耗时也更少。
个人来说,如果是生产环境(x86环境或配置较高的arm环境),应优先考虑openssl-3.1.5+quic,而windows(cygwin)则应该优先考虑libressl。如果是低配置的arm设备,则应该使用旧版的libressl(无BoringSSL的版本)。
当然,如果对安全性有洁癖的话,请优先使用libressl。
大致上就是如此。