Created
December 15, 2019 00:22
-
-
Save kerastinell/64238e3577837c52f5c7b225d5d2ca66 to your computer and use it in GitHub Desktop.
Ralink RT3052 cryptography benchmarks (openssl, cryptsetup)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@OpenWrt:~# cat /proc/cpuinfo | |
system type : Ralink RT3052 id:1 rev:3 | |
machine : D-Link DIR-620 A1 | |
processor : 0 | |
cpu model : MIPS 24KEc V4.12 | |
BogoMIPS : 255.59 | |
wait instruction : yes | |
microsecond timers : yes | |
tlb_entries : 32 | |
extra interrupt vector : yes | |
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb] | |
isa : mips1 mips2 mips32r1 mips32r2 | |
ASEs implemented : mips16 dsp | |
shadow register sets : 1 | |
kscratch registers : 0 | |
package : 0 | |
core : 0 | |
VCED exceptions : not available | |
VCEI exceptions : not available | |
root@OpenWrt:~# openssl speed | |
Doing md4 for 3s on 16 size blocks: 387544 md4's in 2.91s | |
Doing md4 for 3s on 64 size blocks: 346283 md4's in 2.90s | |
Doing md4 for 3s on 256 size blocks: 256229 md4's in 2.92s | |
Doing md4 for 3s on 1024 size blocks: 124823 md4's in 2.88s | |
Doing md4 for 3s on 8192 size blocks: 21560 md4's in 2.89s | |
Doing md5 for 3s on 16 size blocks: 270591 md5's in 2.89s | |
Doing md5 for 3s on 64 size blocks: 232823 md5's in 2.91s | |
Doing md5 for 3s on 256 size blocks: 164503 md5's in 2.88s | |
Doing md5 for 3s on 1024 size blocks: 75670 md5's in 2.89s | |
Doing md5 for 3s on 8192 size blocks: 12276 md5's in 2.89s | |
Doing hmac(md5) for 3s on 16 size blocks: 295942 hmac(md5)'s in 2.91s | |
Doing hmac(md5) for 3s on 64 size blocks: 251580 hmac(md5)'s in 2.92s | |
Doing hmac(md5) for 3s on 256 size blocks: 173904 hmac(md5)'s in 2.91s | |
Doing hmac(md5) for 3s on 1024 size blocks: 77197 hmac(md5)'s in 2.89s | |
Doing hmac(md5) for 3s on 8192 size blocks: 12517 hmac(md5)'s in 2.92s | |
Doing sha1 for 3s on 16 size blocks: 315023 sha1's in 2.95s | |
Doing sha1 for 3s on 64 size blocks: 243701 sha1's in 2.94s | |
Doing sha1 for 3s on 256 size blocks: 144175 sha1's in 2.92s | |
Doing sha1 for 3s on 1024 size blocks: 54665 sha1's in 2.91s | |
Doing sha1 for 3s on 8192 size blocks: 8032 sha1's in 2.92s | |
Doing sha256 for 3s on 16 size blocks: 335668 sha256's in 2.91s | |
Doing sha256 for 3s on 64 size blocks: 193400 sha256's in 2.93s | |
Doing sha256 for 3s on 256 size blocks: 84710 sha256's in 2.92s | |
Doing sha256 for 3s on 1024 size blocks: 26181 sha256's in 2.91s | |
Doing sha256 for 3s on 8192 size blocks: 3496 sha256's in 2.91s | |
Doing sha512 for 3s on 16 size blocks: 70021 sha512's in 2.89s | |
Doing sha512 for 3s on 64 size blocks: 69924 sha512's in 2.91s | |
Doing sha512 for 3s on 256 size blocks: 24267 sha512's in 2.92s | |
Doing sha512 for 3s on 1024 size blocks: 8021 sha512's in 2.88s | |
Doing sha512 for 3s on 8192 size blocks: 1132 sha512's in 2.91s | |
Doing rmd160 for 3s on 16 size blocks: 270551 rmd160's in 2.93s | |
Doing rmd160 for 3s on 64 size blocks: 196491 rmd160's in 2.92s | |
Doing rmd160 for 3s on 256 size blocks: 106909 rmd160's in 2.91s | |
Doing rmd160 for 3s on 1024 size blocks: 37844 rmd160's in 2.94s | |
Doing rmd160 for 3s on 8192 size blocks: 5359 rmd160's in 2.90s | |
Doing rc4 for 3s on 16 size blocks: 3058430 rc4's in 2.86s | |
Doing rc4 for 3s on 64 size blocks: 845084 rc4's in 2.92s | |
Doing rc4 for 3s on 256 size blocks: 217111 rc4's in 2.94s | |
Doing rc4 for 3s on 1024 size blocks: 54483 rc4's in 2.92s | |
Doing rc4 for 3s on 8192 size blocks: 6547 rc4's in 2.79s | |
Doing des cbc for 3s on 16 size blocks: 538860 des cbc's in 2.90s | |
Doing des cbc for 3s on 64 size blocks: 140320 des cbc's in 2.93s | |
Doing des cbc for 3s on 256 size blocks: 35292 des cbc's in 2.92s | |
Doing des cbc for 3s on 1024 size blocks: 8819 des cbc's in 2.90s | |
Doing des cbc for 3s on 8192 size blocks: 1098 des cbc's in 2.91s | |
Doing des ede3 for 3s on 16 size blocks: 196946 des ede3's in 2.90s | |
Doing des ede3 for 3s on 64 size blocks: 49683 des ede3's in 2.92s | |
Doing des ede3 for 3s on 256 size blocks: 12484 des ede3's in 2.95s | |
Doing des ede3 for 3s on 1024 size blocks: 3087 des ede3's in 2.91s | |
Doing des ede3 for 3s on 8192 size blocks: 388 des ede3's in 2.91s | |
Doing aes-128 cbc for 3s on 16 size blocks: 853017 aes-128 cbc's in 2.91s | |
Doing aes-128 cbc for 3s on 64 size blocks: 234447 aes-128 cbc's in 2.90s | |
Doing aes-128 cbc for 3s on 256 size blocks: 59574 aes-128 cbc's in 2.87s | |
Doing aes-128 cbc for 3s on 1024 size blocks: 11106 aes-128 cbc's in 2.12s | |
Doing aes-128 cbc for 3s on 8192 size blocks: 1887 aes-128 cbc's in 2.86s | |
Doing aes-192 cbc for 3s on 16 size blocks: 748358 aes-192 cbc's in 2.90s | |
Doing aes-192 cbc for 3s on 64 size blocks: 201216 aes-192 cbc's in 2.85s | |
Doing aes-192 cbc for 3s on 256 size blocks: 52052 aes-192 cbc's in 2.90s | |
Doing aes-192 cbc for 3s on 1024 size blocks: 13042 aes-192 cbc's in 2.88s | |
Doing aes-192 cbc for 3s on 8192 size blocks: 1612 aes-192 cbc's in 2.87s | |
Doing aes-256 cbc for 3s on 16 size blocks: 668062 aes-256 cbc's in 2.89s | |
Doing aes-256 cbc for 3s on 64 size blocks: 179670 aes-256 cbc's in 2.90s | |
Doing aes-256 cbc for 3s on 256 size blocks: 45752 aes-256 cbc's in 2.90s | |
Doing aes-256 cbc for 3s on 1024 size blocks: 11481 aes-256 cbc's in 2.90s | |
Doing aes-256 cbc for 3s on 8192 size blocks: 1435 aes-256 cbc's in 2.90s | |
Doing aes-128 ige for 3s on 16 size blocks: 857283 aes-128 ige's in 2.91s | |
Doing aes-128 ige for 3s on 64 size blocks: 250172 aes-128 ige's in 2.90s | |
Doing aes-128 ige for 3s on 256 size blocks: 65289 aes-128 ige's in 2.94s | |
Doing aes-128 ige for 3s on 1024 size blocks: 16429 aes-128 ige's in 2.93s | |
Doing aes-128 ige for 3s on 8192 size blocks: 2018 aes-128 ige's in 2.91s | |
Doing aes-192 ige for 3s on 16 size blocks: 752070 aes-192 ige's in 2.89s | |
Doing aes-192 ige for 3s on 64 size blocks: 214814 aes-192 ige's in 2.92s | |
Doing aes-192 ige for 3s on 256 size blocks: 55445 aes-192 ige's in 2.89s | |
Doing aes-192 ige for 3s on 1024 size blocks: 13967 aes-192 ige's in 2.88s | |
Doing aes-192 ige for 3s on 8192 size blocks: 1709 aes-192 ige's in 2.86s | |
Doing aes-256 ige for 3s on 16 size blocks: 670091 aes-256 ige's in 2.92s | |
Doing aes-256 ige for 3s on 64 size blocks: 187385 aes-256 ige's in 2.86s | |
Doing aes-256 ige for 3s on 256 size blocks: 48179 aes-256 ige's in 2.89s | |
Doing aes-256 ige for 3s on 1024 size blocks: 12209 aes-256 ige's in 2.94s | |
Doing aes-256 ige for 3s on 8192 size blocks: 1501 aes-256 ige's in 2.88s | |
Doing ghash for 3s on 16 size blocks: 984397 ghash's in 2.89s | |
Doing ghash for 3s on 64 size blocks: 262211 ghash's in 2.89s | |
Doing ghash for 3s on 256 size blocks: 66680 ghash's in 2.91s | |
Doing ghash for 3s on 1024 size blocks: 16702 ghash's in 2.91s | |
Doing ghash for 3s on 8192 size blocks: 2091 ghash's in 2.91s | |
Doing rc2 cbc for 3s on 16 size blocks: 574383 rc2 cbc's in 2.91s | |
Doing rc2 cbc for 3s on 64 size blocks: 148047 rc2 cbc's in 2.89s | |
Doing rc2 cbc for 3s on 256 size blocks: 37540 rc2 cbc's in 2.93s | |
Doing rc2 cbc for 3s on 1024 size blocks: 9406 rc2 cbc's in 2.92s | |
Doing rc2 cbc for 3s on 8192 size blocks: 1170 rc2 cbc's in 2.92s | |
Doing blowfish cbc for 3s on 16 size blocks: 1066227 blowfish cbc's in 2.93s | |
Doing blowfish cbc for 3s on 64 size blocks: 285960 blowfish cbc's in 2.93s | |
Doing blowfish cbc for 3s on 256 size blocks: 72143 blowfish cbc's in 2.90s | |
Doing blowfish cbc for 3s on 1024 size blocks: 18177 blowfish cbc's in 2.92s | |
Doing blowfish cbc for 3s on 8192 size blocks: 2246 blowfish cbc's in 2.89s | |
Doing cast cbc for 3s on 16 size blocks: 1071283 cast cbc's in 2.92s | |
Doing cast cbc for 3s on 64 size blocks: 285602 cast cbc's in 2.92s | |
Doing cast cbc for 3s on 256 size blocks: 72852 cast cbc's in 2.91s | |
Doing cast cbc for 3s on 1024 size blocks: 18217 cast cbc's in 2.88s | |
Doing cast cbc for 3s on 8192 size blocks: 2273 cast cbc's in 2.88s | |
Doing 512 bit private rsa's for 10s: 1884 512 bit private RSA's in 9.62s | |
Doing 512 bit public rsa's for 10s: 19709 512 bit public RSA's in 9.58s | |
Doing 1024 bit private rsa's for 10s: 301 1024 bit private RSA's in 9.63s | |
Doing 1024 bit public rsa's for 10s: 5529 1024 bit public RSA's in 9.67s | |
Doing 2048 bit private rsa's for 10s: 42 2048 bit private RSA's in 9.85s | |
Doing 2048 bit public rsa's for 10s: 1563 2048 bit public RSA's in 9.66s | |
Doing 4096 bit private rsa's for 10s: 7 4096 bit private RSA's in 11.18s | |
Doing 4096 bit public rsa's for 10s: 416 4096 bit public RSA's in 9.58s | |
Doing 512 bit sign dsa's for 10s: 1269 512 bit DSA signs in 9.56s | |
Doing 512 bit verify dsa's for 10s: 1603 512 bit DSA verify in 9.49s | |
Doing 1024 bit sign dsa's for 10s: 398 1024 bit DSA signs in 9.57s | |
Doing 1024 bit verify dsa's for 10s: 440 1024 bit DSA verify in 9.60s | |
Doing 2048 bit sign dsa's for 10s: 119 2048 bit DSA signs in 9.66s | |
Doing 2048 bit verify dsa's for 10s: 125 2048 bit DSA verify in 9.72s | |
Doing 160 bit sign ecdsa's for 10s: 540 160 bit ECDSA signs in 9.55s | |
Doing 160 bit verify ecdsa's for 10s: 891 160 bit ECDSA verify in 9.65s | |
Doing 192 bit sign ecdsa's for 10s: 378 192 bit ECDSA signs in 9.63s | |
Doing 192 bit verify ecdsa's for 10s: 636 192 bit ECDSA verify in 9.57s | |
Doing 224 bit sign ecdsa's for 10s: 267 224 bit ECDSA signs in 9.71s | |
Doing 224 bit verify ecdsa's for 10s: 453 224 bit ECDSA verify in 9.61s | |
Doing 256 bit sign ecdsa's for 10s: 193 256 bit ECDSA signs in 9.61s | |
Doing 256 bit verify ecdsa's for 10s: 346 256 bit ECDSA verify in 9.66s | |
Doing 384 bit sign ecdsa's for 10s: 69 384 bit ECDSA signs in 9.67s | |
Doing 384 bit verify ecdsa's for 10s: 128 384 bit ECDSA verify in 9.64s | |
Doing 521 bit sign ecdsa's for 10s: 23 521 bit ECDSA signs in 9.85s | |
Doing 521 bit verify ecdsa's for 10s: 46 521 bit ECDSA verify in 9.69s | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
ECDSA failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
Doing 160 bit ecdh's for 10s: 585 160-bit ECDH ops in 9.63s | |
Doing 192 bit ecdh's for 10s: 400 192-bit ECDH ops in 9.69s | |
Doing 224 bit ecdh's for 10s: 246 224-bit ECDH ops in 8.40s | |
Doing 256 bit ecdh's for 10s: 187 256-bit ECDH ops in 8.76s | |
Doing 384 bit ecdh's for 10s: 73 384-bit ECDH ops in 9.70s | |
Doing 521 bit ecdh's for 10s: 24 521-bit ECDH ops in 9.96s | |
ECDH failure. | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
2012753204:error:100AE081:lib(16):func(174):reason(129):NA:0: | |
OpenSSL 1.0.2t 10 Sep 2019 | |
built on: reproducible build, date unspecified | |
options:bn(64,32) rc4(ptr,char) des(idx,cisc,2,long) aes(partial) blowfish(ptr) | |
compiler: mipsel-openwrt-linux-musl-gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -I/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/include -znow -zrelro -DOPENSSL_SMALL_FOOTPRINT -DHAVE_CRYPTODEV -DOPENSSL_NO_ERR -DTERMIOS -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc_musl/openssl-1.0.2t:openssl-1.0.2t -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fpic -I/builder/shared-workdir/build/sdk/feeds/base/package/libs/openssl/include -ffunction-sections -fdata-sections -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM | |
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 | |
mdc2 0.00 0.00 0.00 0.00 0.00 | |
md4 2130.83k 7642.11k 22463.91k 44381.51k 61114.02k | |
md5 1498.08k 5120.51k 14622.49k 26811.79k 34797.58k | |
hmac(md5) 1627.17k 5514.08k 15298.77k 27352.85k 35116.19k | |
sha1 1708.60k 5305.06k 12640.00k 19236.07k 22533.61k | |
rmd160 1477.41k 4306.65k 9405.05k 13181.04k 15138.25k | |
rc4 17110.10k 18522.39k 18904.90k 19106.37k 19223.31k | |
des cbc 2973.02k 3065.01k 3094.09k 3114.02k 3091.00k | |
des ede3 1086.60k 1088.94k 1083.36k 1086.28k 1092.27k | |
idea cbc 0.00 0.00 0.00 0.00 0.00 | |
seed cbc 0.00 0.00 0.00 0.00 0.00 | |
rc2 cbc 3158.12k 3278.55k 3279.95k 3298.54k 3282.41k | |
rc5-32/12 cbc 0.00 0.00 0.00 0.00 0.00 | |
blowfish cbc 5822.40k 6246.23k 6368.49k 6374.40k 6366.52k | |
cast cbc 5870.04k 6259.77k 6408.97k 6477.16k 6465.42k | |
aes-128 cbc 4690.13k 5174.00k 5313.92k 5364.41k 5405.00k | |
aes-192 cbc 4128.87k 4518.53k 4594.94k 4637.16k 4601.22k | |
aes-256 cbc 3698.61k 3965.13k 4038.80k 4053.98k 4053.63k | |
camellia-128 cbc 0.00 0.00 0.00 0.00 0.00 | |
camellia-192 cbc 0.00 0.00 0.00 0.00 0.00 | |
camellia-256 cbc 0.00 0.00 0.00 0.00 0.00 | |
sha256 1845.60k 4224.44k 7426.63k 9212.83k 9841.66k | |
sha512 387.66k 1537.85k 2127.52k 2851.91k 3186.72k | |
whirlpool 0.00 0.00 0.00 0.00 0.00 | |
aes-128 ige 4713.58k 5521.04k 5685.03k 5741.74k 5680.91k | |
aes-192 ige 4163.71k 4708.25k 4911.39k 4966.04k 4895.15k | |
aes-256 ige 3671.73k 4193.23k 4267.76k 4252.39k 4269.51k | |
ghash 5449.95k 5806.75k 5866.01k 5877.27k 5886.42k | |
sign verify sign/s verify/s | |
rsa 512 bits 0.005106s 0.000486s 195.8 2057.3 | |
rsa 1024 bits 0.031993s 0.001749s 31.3 571.8 | |
rsa 2048 bits 0.234524s 0.006180s 4.3 161.8 | |
rsa 4096 bits 1.597143s 0.023029s 0.6 43.4 | |
sign verify sign/s verify/s | |
dsa 512 bits 0.007533s 0.005920s 132.7 168.9 | |
dsa 1024 bits 0.024045s 0.021818s 41.6 45.8 | |
dsa 2048 bits 0.081176s 0.077760s 12.3 12.9 | |
sign verify sign/s verify/s | |
160 bit ecdsa (secp160r1) 0.0177s 0.0108s 56.5 92.3 | |
192 bit ecdsa (nistp192) 0.0255s 0.0150s 39.3 66.5 | |
224 bit ecdsa (nistp224) 0.0364s 0.0212s 27.5 47.1 | |
256 bit ecdsa (nistp256) 0.0498s 0.0279s 20.1 35.8 | |
384 bit ecdsa (nistp384) 0.1401s 0.0753s 7.1 13.3 | |
521 bit ecdsa (nistp521) 0.4283s 0.2107s 2.3 4.7 | |
163 bit ecdsa (nistk163) 0.0000s 0.0000s inf inf | |
233 bit ecdsa (nistk233) 0.0000s 0.0000s inf inf | |
283 bit ecdsa (nistk283) 0.0000s 0.0000s inf inf | |
409 bit ecdsa (nistk409) 0.0000s 0.0000s inf inf | |
571 bit ecdsa (nistk571) 0.0000s 0.0000s inf inf | |
163 bit ecdsa (nistb163) 0.0000s 0.0000s inf inf | |
233 bit ecdsa (nistb233) 0.0000s 0.0000s inf inf | |
283 bit ecdsa (nistb283) 0.0000s 0.0000s inf inf | |
409 bit ecdsa (nistb409) 0.0000s 0.0000s inf inf | |
571 bit ecdsa (nistb571) 0.0000s 0.0000s inf inf | |
op op/s | |
160 bit ecdh (secp160r1) 0.0165s 60.7 | |
192 bit ecdh (nistp192) 0.0242s 41.3 | |
224 bit ecdh (nistp224) 0.0341s 29.3 | |
256 bit ecdh (nistp256) 0.0468s 21.3 | |
384 bit ecdh (nistp384) 0.1329s 7.5 | |
521 bit ecdh (nistp521) 0.4150s 2.4 | |
163 bit ecdh (nistk163) 0.0000s inf | |
root@OpenWrt:~# cryptsetup benchmark | |
# Tests are approximate using memory only (no storage IO). | |
PBKDF2-sha1 6657 iterations per second for 256-bit key | |
PBKDF2-sha256 6339 iterations per second for 256-bit key | |
PBKDF2-sha512 2949 iterations per second for 256-bit key | |
PBKDF2-ripemd160 5493 iterations per second for 256-bit key | |
PBKDF2-whirlpool 1718 iterations per second for 256-bit key | |
# Algorithm | Key | Encryption | Decryption | |
aes-cbc 128b N/A N/A | |
serpent-cbc 128b N/A N/A | |
twofish-cbc 128b N/A N/A | |
aes-cbc 256b N/A N/A | |
serpent-cbc 256b N/A N/A | |
twofish-cbc 256b N/A N/A | |
aes-xts 256b 3.9 MiB/s 4.9 MiB/s | |
serpent-xts 256b 3.5 MiB/s 4.4 MiB/s | |
twofish-xts 256b 4.3 MiB/s 5.3 MiB/s | |
aes-xts 512b 4.0 MiB/s 4.0 MiB/s | |
serpent-xts 512b 4.4 MiB/s 4.4 MiB/s | |
twofish-xts 512b 5.5 MiB/s 5.3 MiB/s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment