Crypto++ 5.6.5 Benchmarks

Here are speed benchmarks for some commonly used cryptographic algorithms.

The host OS is Fedora release 25 (x86_64). The host CPU is a 6th generation Skylake, frequency is 3.14713e+09 Hz.


AlgorithmMiB/SecondCycles Per Byte
NonblockingRng15719.1
AutoSeededRandomPool5515.4
AutoSeededX917RNG(AES)5455.9
MT199379463.2
RDRAND6049.9
RDSEED25121.7
AES/OFB RNG8193.7
Hash_DRBG(SHA1)9432.0
Hash_DRBG(SHA256)8535.2
HMAC_DRBG(SHA1)25121.0
HMAC_DRBG(SHA256)22136.5
CRC323917.7
CRC32C34900.9
Adler3214322.1
MD54956.1
SHA-14456.7
SHA-25622313.4
SHA-5123438.7
Keccak-2243149.6
Keccak-25629810.1
Keccak-38422813.1
Keccak-51215918.9
SHA3-2243149.6
SHA3-25629810.1
SHA3-38422813.1
SHA3-51215918.9
Tiger4826.2
Whirlpool12424.3
RIPEMD-16021214.1
RIPEMD-32025311.9
RIPEMD-1283319.1
RIPEMD-2563957.6
BLAKE2s4466.7
BLAKE2b6594.6

AlgorithmMiB/SecondCycles Per ByteMicroseconds to
Setup Key and IV
Cycles to
Setup Key and IV
GMAC(AES)75090.40.4681472
VMAC(AES)-64 (128-bit key)93360.30.6402014
VMAC(AES)-128 (128-bit key)51590.60.7012206
HMAC(SHA-1) (128-bit key)4446.80.268842
Two-Track-MAC (160-bit key)20814.40.01237
CMAC(AES) (128-bit key)8763.40.141443
DMAC(AES) (128-bit key)8793.40.5971880
Poly1305(AES) (256-bit key)8423.60.262823
BLAKE2s (256-bit key)4466.70.233733
BLAKE2b (512-bit key)6594.60.257808
SipHash-2-4 (128-bit key)9553.10.01032
SipHash-4-8 (128-bit key)8323.60.01032
Panama-LE (256-bit key)16071.90.8262600
Panama-BE (256-bit key)9573.11.0913435
Salsa20 (256-bit key)4207.10.187588
Salsa20/126554.60.240756
Salsa20/89103.30.240756
ChaCha20 (256-bit key)3977.60.136427
ChaCha12 (256-bit key)6464.60.136428
ChaCha8 (256-bit key)8583.50.135426
Sosemanuk (128-bit key)14242.10.5021578
MARC4 (128-bit key)4646.50.9663041
SEAL-3.0-LE (160-bit key)6035.022.69271416
WAKE-OFB-LE (256-bit key)3189.41.7505508
AES/CTR (128-bit key)37350.80.292917
AES/CTR (192-bit key)31740.90.282888
AES/CTR (256-bit key)27581.10.306964
AES/CBC (128-bit key)8793.40.227715
AES/CBC (192-bit key)7534.00.216679
AES/CBC (256-bit key)6594.60.242761
AES/OFB (128-bit key)8273.60.288906
AES/CFB (128-bit key)8583.50.307966
AES/ECB (128-bit key)41400.70.081254
ARIA/CTR (128-bit key)11526.10.310976
ARIA/CTR (256-bit key)8933.80.3301039
Camellia/CTR (128-bit key)12424.30.265836
Camellia/CTR (256-bit key)9631.30.285897
Twofish/CTR (128-bit key)16118.72.0756530
Threefish/CTR (256-bit key)29810.10.3831206
Threefish/CTR (512-bit key)4077.40.3861216
Threefish/CTR (1024-bit key)26711.30.3941241
Serpent/CTR (128-bit key)7142.20.4791506
CAST-256/CTR (128-bit key)9033.51.2043789
RC6/CTR (128-bit key)12324.52.1226677
MARS/CTR (128-bit key)11526.21.0533313
SHACAL-2/CTR (128-bit key)15819.00.3271028
SHACAL-2/CTR (512-bit key)15819.00.3321044
DES/CTR (64-bit key)6347.42.4347662
DES-XEX3/CTR (192-bit key)5951.12.4657759
DES-EDE3/CTR (192-bit key)24124.810.32932506
IDEA/CTR (128-bit key)7440.30.304958
RC5 (r=16)10428.81.7125388
Blowfish/CTR (128-bit key)10129.736.738115618
TEA/CTR (128-bit key)6050.20.264830
XTEA/CTR (128-bit key)5654.00.262824
CAST-128/CTR (128-bit key)8933.70.3661153
SKIPJACK/CTR (80-bit key)3195.72.1506767
SEED/CTR (1/2 K table)5059.80.3191003
Kalyna-128(128) (128-bit key)20114.90.4881535
Kalyna-128(256) (256-bit key)12723.60.5271658
Kalyna-256(256) (256-bit key)16917.80.6782135
Kalyna-256(512) (512-bit key)13322.50.7432339
Kalyna-512(512) (512-bit key)12024.91.1493616
AES/GCM24481.20.4681472
AES/CCM (128-bit key)7104.20.3541113
AES/EAX (128-bit key)7094.20.4341366

OperationMilliseconds/OperationMegacycles/Operation
RSA 1024 Encryption0.020.05
RSA 1024 Decryption0.270.85
LUC 1024 Encryption0.020.05
LUC 1024 Decryption0.491.56
DLIES 1024 Encryption0.180.56
DLIES 1024 Encryption with precomputation0.381.20
DLIES 1024 Decryption0.310.97
LUCELG 512 Encryption0.110.34
LUCELG 512 Encryption with precomputation0.110.34
LUCELG 512 Decryption0.130.42
RSA 2048 Encryption0.030.10
RSA 2048 Decryption1.243.90
LUC 2048 Encryption0.040.11
LUC 2048 Decryption2.146.73
DLIES 2048 Encryption0.852.69
DLIES 2048 Encryption with precomputation0.993.10
DLIES 2048 Decryption0.932.93
LUCELG 1024 Encryption0.401.25
LUCELG 1024 Encryption with precomputation0.401.25
LUCELG 1024 Decryption0.391.22
RSA 1024 Signature0.270.85
RSA 1024 Verification0.020.05
RW 1024 Signature0.290.92
RW 1024 Signature with precomputation0.290.92
RW 1024 Verification0.010.03
LUC 1024 Signature0.481.52
LUC 1024 Verification0.020.05
NR 1024 Signature0.090.29
NR 1024 Signature with precomputation0.110.35
NR 1024 Verification0.110.33
NR 1024 Verification with precomputation0.170.52
DSA 1024 Signature0.090.30
DSA 1024 Signature with precomputation0.110.36
DSA 1024 Verification0.110.34
DSA 1024 Verification with precomputation0.160.51
LUC-HMP 512 Signature0.100.33
LUC-HMP 512 Signature with precomputation0.100.33
LUC-HMP 512 Verification0.110.34
LUC-HMP 512 Verification with precomputation0.110.35
ESIGN 1023 Signature0.050.16
ESIGN 1023 Verification0.010.04
ESIGN 1536 Signature0.080.24
ESIGN 1536 Verification0.030.08
RSA 2048 Signature1.243.89
RSA 2048 Verification0.030.10
RW 2048 Signature1.284.01
RW 2048 Signature with precomputation1.274.01
RW 2048 Verification0.020.06
LUC 2048 Signature2.146.75
LUC 2048 Verification0.030.11
NR 2048 Signature0.431.36
NR 2048 Signature with precomputation0.240.76
NR 2048 Verification0.501.58
NR 2048 Verification with precomputation0.361.13
LUC-HMP 1024 Signature0.401.25
LUC-HMP 1024 Signature with precomputation0.401.25
LUC-HMP 1024 Verification0.401.27
LUC-HMP 1024 Verification with precomputation0.411.28
ESIGN 2046 Signature0.100.31
ESIGN 2046 Verification0.030.09
XTR-DH 171 Key-Pair Generation0.150.48
XTR-DH 171 Key Agreement0.290.91
XTR-DH 342 Key-Pair Generation0.371.15
XTR-DH 342 Key Agreement0.732.29
DH 1024 Key-Pair Generation0.090.30
DH 1024 Key-Pair Generation with precomputation0.190.61
DH 1024 Key Agreement0.300.96
DH 2048 Key-Pair Generation0.441.38
DH 2048 Key-Pair Generation with precomputation0.521.65
DH 2048 Key Agreement0.912.87
LUCDIF 512 Key-Pair Generation0.060.18
LUCDIF 512 Key-Pair Generation with precomputation0.060.18
LUCDIF 512 Key Agreement0.140.43
LUCDIF 1024 Key-Pair Generation0.200.64
LUCDIF 1024 Key-Pair Generation with precomputation0.200.63
LUCDIF 1024 Key Agreement0.381.20
MQV 1024 Key-Pair Generation0.090.28
MQV 1024 Key-Pair Generation with precomputation0.110.34
MQV 1024 Key Agreement0.180.57
MQV 2048 Key-Pair Generation0.431.34
MQV 2048 Key-Pair Generation with precomputation0.230.73
MQV 2048 Key Agreement0.802.52
ECIES over GF(p) 256 Encryption1.263.97
ECIES over GF(p) 256 Encryption with precomputation1.093.44
ECIES over GF(p) 256 Decryption0.902.82
ECDSA over GF(p) 256 Signature0.642.02
ECDSA over GF(p) 256 Signature with precomputation0.561.75
ECDSA over GF(p) 256 Verification2.216.97
ECDSA over GF(p) 256 Verification with precomputation0.902.84
ECDSA-RFC6979 over GF(p) 256 Signature0.642.03
ECDSA-RFC6979 over GF(p) 256 Signature with precomputation0.561.77
ECDSA-RFC6979 over GF(p) 256 Verification2.237.03
ECDSA-RFC6979 over GF(p) 256 Verification with precomputation0.942.96
ECGDSA over GF(p) 256 Signature1.274.00
ECGDSA over GF(p) 256 Signature with precomputation1.093.43
ECGDSA over GF(p) 256 Verification2.196.89
ECGDSA over GF(p) 256 Verification with precomputation0.942.97
ECDHC over GF(p) 256 Key-Pair Generation0.631.99
ECDHC over GF(p) 256 Key-Pair Generation with precomputation0.551.72
ECDHC over GF(p) 256 Key Agreement0.631.99
ECMQVC over GF(p) 256 Key-Pair Generation0.631.99
ECMQVC over GF(p) 256 Key-Pair Generation with precomputation0.551.72
ECMQVC over GF(p) 256 Key Agreement2.237.00
ECIES over GF(2^n) 233 Encryption8.4426.58
ECIES over GF(2^n) 233 Encryption with precomputation2.317.26
ECIES over GF(2^n) 233 Decryption4.8215.17
ECDSA over GF(2^n) 233 Signature4.2413.33
ECDSA over GF(2^n) 233 Signature with precomputation1.163.66
ECDSA over GF(2^n) 233 Verification5.2116.38
ECDSA over GF(2^n) 233 Verification with precomputation2.036.38
ECDSA-RFC6979 over GF(2^n) 233 Signature4.2413.36
ECDSA-RFC6979 over GF(2^n) 233 Signature with precomputation1.153.62
ECDSA-RFC6979 over GF(2^n) 233 Verification5.2416.50
ECDSA-RFC6979 over GF(2^n) 233 Verification with precomputation2.016.33
ECGDSA over GF(2^n) 233 Signature8.4626.64
ECGDSA over GF(2^n) 233 Signature with precomputation2.367.42
ECGDSA over GF(2^n) 233 Verification5.1716.28
ECGDSA over GF(2^n) 233 Verification with precomputation2.066.48
ECDHC over GF(2^n) 233 Key-Pair Generation4.2313.30
ECDHC over GF(2^n) 233 Key-Pair Generation with precomputation1.183.71
ECDHC over GF(2^n) 233 Key Agreement4.2913.50
ECMQVC over GF(2^n) 233 Key-Pair Generation4.2313.32
ECMQVC over GF(2^n) 233 Key-Pair Generation with precomputation1.183.70
ECMQVC over GF(2^n) 233 Key Agreement5.3516.85

Throughput Geometric Average: 1014.247369

Test started at Mon May 15 23:28:43 2017
Test ended at Mon May 15 23:38:24 2017