Crypto++ 6.0.0 Benchmarks

Here are speed benchmarks for some commonly used cryptographic algorithms.

CPU frequency of the test platform is 4.1e+09 Hz.

AlgorithmMiB/SecondCycles Per Byte
NonblockingRng30013.0
AutoSeededRandomPool4379.0
AutoSeededX917RNG(AES)7155.3
MT199379864.0
RDRAND26914.6
AES/OFB RNG6985.6
Hash_DRBG(SHA1)11434.2
Hash_DRBG(SHA256)11235.0
HMAC_DRBG(SHA1)31126.1
HMAC_DRBG(SHA256)29132.9
CRC325397.3
CRC32C52570.7
Adler3217672.2
MD57275.4
SHA-15577.0
SHA-25629813.1
SHA-51239310.0
Keccak-22432512.0
Keccak-25630712.7
Keccak-38423216.9
Keccak-51216423.8
SHA3-22432412.1
SHA3-25630612.8
SHA3-38423316.8
SHA3-51216423.8
Tiger5976.5
Whirlpool17122.9
RIPEMD-16030712.8
RIPEMD-32034311.4
RIPEMD-1284658.4
RIPEMD-2565237.5
BLAKE2s6296.2
BLAKE2b9504.1

AlgorithmMiB/SecondCycles Per ByteMicroseconds to
Setup Key and IV
Cycles to
Setup Key and IV
GMAC(AES)19312.00.4041657
VMAC(AES)-64 (128-bit key)98310.40.5152112
VMAC(AES)-128 (128-bit key)56220.70.5842394
HMAC(SHA-1) (128-bit key)5577.00.212871
Two-Track-MAC (160-bit key)29813.10.00937
CMAC(AES) (128-bit key)7205.40.120491
DMAC(AES) (128-bit key)7235.40.4871997
Poly1305(AES) (256-bit key)11863.30.201824
BLAKE2s (256-bit key)6296.20.165678
BLAKE2b (512-bit key)9514.10.195798
SipHash-2-4 (128-bit key)15802.50.00833
SipHash-4-8 (128-bit key)9474.10.00833
Panama-LE (256-bit key)21301.80.5972448
Panama-BE (256-bit key)11663.40.8553506
Salsa20 (256-bit key)5147.60.137560
Salsa20/127895.00.174711
Salsa20/810673.70.172707
ChaCha20 (256-bit key)5087.70.099408
ChaCha12 (256-bit key)7835.00.099406
ChaCha8 (256-bit key)10503.70.098403
Sosemanuk (128-bit key)17152.30.3621486
MARC4 (128-bit key)4937.91.0864454
SEAL-3.0-LE (160-bit key)8844.418.75176877
WAKE-OFB-LE (256-bit key)4189.31.2875278
AES/CTR (128-bit key)29361.30.216884
AES/CTR (192-bit key)24701.60.211865
AES/CTR (256-bit key)21481.80.229938
AES/CBC (128-bit key)7245.40.167686
AES/CBC (192-bit key)6126.40.165676
AES/CBC (256-bit key)5317.40.178730
AES/OFB (128-bit key)6895.70.213875
AES/CFB (128-bit key)7165.50.234958
AES/ECB (128-bit key)35101.10.067276
Camellia/CTR (128-bit key)16323.90.215882
Camellia/CTR (256-bit key)12730.80.221906
Twofish/CTR (128-bit key)20119.41.7297088
Serpent/CTR (128-bit key)9840.10.3491433
CAST-256/CTR (128-bit key)12032.60.8923656
RC6/CTR (128-bit key)16423.81.5906517
MARS/CTR (128-bit key)14626.80.7543091
SHACAL-2/CTR (128-bit key)19120.40.240986
SHACAL-2/CTR (512-bit key)19120.50.2481018
DES/CTR (64-bit key)8347.01.9748094
DES-XEX3/CTR (192-bit key)7949.41.9658056
DES-EDE3/CTR (192-bit key)32123.16.64427239
IDEA/CTR (128-bit key)10138.80.219897
RC5 (r=16)15724.91.2745224
Blowfish/CTR (128-bit key)13928.227.488112699
TEA/CTR (128-bit key)8347.10.194795
XTEA/CTR (128-bit key)7551.90.194795
CAST-128/CTR (128-bit key)12232.10.2841164
SKIPJACK/CTR (80-bit key)4782.91.5046167
SEED/CTR (1/2 K table)7551.90.242992
AES/GCM11813.30.4031654
AES/CCM (128-bit key)5796.70.2621074
AES/EAX (128-bit key)5806.70.3511440

OperationMilliseconds/OperationMegacycles/Operation
RSA 1024 Encryption0.010.06
RSA 1024 Decryption0.271.09
LUC 1024 Encryption0.020.06
LUC 1024 Decryption0.461.89
DLIES 1024 Encryption0.180.75
DLIES 1024 Encryption with precomputation0.351.42
DLIES 1024 Decryption0.251.04
LUCELG 512 Encryption0.110.44
LUCELG 512 Encryption with precomputation0.110.44
LUCELG 512 Decryption0.120.50
RSA 2048 Encryption0.030.12
RSA 2048 Decryption1.235.06
LUC 2048 Encryption0.030.14
LUC 2048 Decryption2.118.66
DLIES 2048 Encryption0.883.59
DLIES 2048 Encryption with precomputation0.984.00
DLIES 2048 Decryption0.833.42
LUCELG 1024 Encryption0.411.66
LUCELG 1024 Encryption with precomputation0.401.62
LUCELG 1024 Decryption0.361.47
RSA 1024 Signature0.261.08
RSA 1024 Verification0.010.06
RW 1024 Signature0.281.16
RW 1024 Signature with precomputation0.281.16
RW 1024 Verification0.010.04
LUC 1024 Signature0.441.81
LUC 1024 Verification0.020.06
NR 1024 Signature0.090.38
NR 1024 Signature with precomputation0.100.42
NR 1024 Verification0.110.43
NR 1024 Verification with precomputation0.150.60
DSA 1024 Signature0.090.38
DSA 1024 Signature with precomputation0.100.40
DSA 1024 Verification0.110.45
DSA 1024 Verification with precomputation0.150.61
LUC-HMP 512 Signature0.110.44
LUC-HMP 512 Signature with precomputation0.100.43
LUC-HMP 512 Verification0.110.44
LUC-HMP 512 Verification with precomputation0.110.43
ESIGN 1023 Signature0.040.18
ESIGN 1023 Verification0.010.05
ESIGN 1536 Signature0.070.29
ESIGN 1536 Verification0.020.10
RSA 2048 Signature1.214.98
RSA 2048 Verification0.030.12
RW 2048 Signature1.305.33
RW 2048 Signature with precomputation1.275.23
RW 2048 Verification0.020.07
LUC 2048 Signature2.158.83
LUC 2048 Verification0.030.14
NR 2048 Signature0.441.81
NR 2048 Signature with precomputation0.210.84
NR 2048 Verification0.522.11
NR 2048 Verification with precomputation0.351.44
LUC-HMP 1024 Signature0.411.67
LUC-HMP 1024 Signature with precomputation0.411.68
LUC-HMP 1024 Verification0.421.71
LUC-HMP 1024 Verification with precomputation0.411.70
ESIGN 2046 Signature0.090.37
ESIGN 2046 Verification0.030.11
XTR-DH 171 Key-Pair Generation0.130.53
XTR-DH 171 Key Agreement0.251.03
XTR-DH 342 Key-Pair Generation0.351.42
XTR-DH 342 Key Agreement0.702.87
DH 1024 Key-Pair Generation0.100.41
DH 1024 Key-Pair Generation with precomputation0.180.72
DH 1024 Key Agreement0.240.97
DH 2048 Key-Pair Generation0.441.80
DH 2048 Key-Pair Generation with precomputation0.512.09
DH 2048 Key Agreement0.853.49
LUCDIF 512 Key-Pair Generation0.060.23
LUCDIF 512 Key-Pair Generation with precomputation0.060.23
LUCDIF 512 Key Agreement0.120.50
LUCDIF 1024 Key-Pair Generation0.210.85
LUCDIF 1024 Key-Pair Generation with precomputation0.210.85
LUCDIF 1024 Key Agreement0.351.43
MQV 1024 Key-Pair Generation0.090.38
MQV 1024 Key-Pair Generation with precomputation0.090.39
MQV 1024 Key Agreement0.180.72
MQV 2048 Key-Pair Generation0.441.81
MQV 2048 Key-Pair Generation with precomputation0.220.90
MQV 2048 Key Agreement0.813.30
ECIES over GF(p) 256 Encryption1.064.35
ECIES over GF(p) 256 Encryption with precomputation0.913.73
ECIES over GF(p) 256 Decryption0.753.08
ECDSA over GF(p) 256 Signature0.542.22
ECDSA over GF(p) 256 Signature with precomputation0.471.92
ECDSA over GF(p) 256 Verification1.897.75
ECDSA over GF(p) 256 Verification with precomputation0.783.21
ECDSA-RFC6979 over GF(p) 256 Signature0.572.34
ECDSA-RFC6979 over GF(p) 256 Signature with precomputation0.441.82
ECDSA-RFC6979 over GF(p) 256 Verification1.867.61
ECDSA-RFC6979 over GF(p) 256 Verification with precomputation0.753.06
ECGDSA over GF(p) 256 Signature1.094.47
ECGDSA over GF(p) 256 Signature with precomputation0.903.71
ECGDSA over GF(p) 256 Verification1.907.78
ECGDSA over GF(p) 256 Verification with precomputation0.803.30
ECDHC over GF(p) 256 Key-Pair Generation0.532.19
ECDHC over GF(p) 256 Key-Pair Generation with precomputation0.461.87
ECDHC over GF(p) 256 Key Agreement0.532.19
ECMQVC over GF(p) 256 Key-Pair Generation0.532.19
ECMQVC over GF(p) 256 Key-Pair Generation with precomputation0.451.86
ECMQVC over GF(p) 256 Key Agreement1.867.61
ECIES over GF(2^n) 233 Encryption6.2825.73
ECIES over GF(2^n) 233 Encryption with precomputation1.737.10
ECIES over GF(2^n) 233 Decryption3.5614.59
ECDSA over GF(2^n) 233 Signature3.1913.07
ECDSA over GF(2^n) 233 Signature with precomputation0.893.63
ECDSA over GF(2^n) 233 Verification3.9316.13
ECDSA over GF(2^n) 233 Verification with precomputation1.536.26
ECDSA-RFC6979 over GF(2^n) 233 Signature3.1212.78
ECDSA-RFC6979 over GF(2^n) 233 Signature with precomputation0.853.48
ECDSA-RFC6979 over GF(2^n) 233 Verification3.8115.64
ECDSA-RFC6979 over GF(2^n) 233 Verification with precomputation1.496.11
ECGDSA over GF(2^n) 233 Signature6.3225.90
ECGDSA over GF(2^n) 233 Signature with precomputation1.737.09
ECGDSA over GF(2^n) 233 Verification3.8715.87
ECGDSA over GF(2^n) 233 Verification with precomputation1.445.90
ECDHC over GF(2^n) 233 Key-Pair Generation3.1212.77
ECDHC over GF(2^n) 233 Key-Pair Generation with precomputation0.863.54
ECDHC over GF(2^n) 233 Key Agreement3.1312.85
ECMQVC over GF(2^n) 233 Key-Pair Generation3.0912.66
ECMQVC over GF(2^n) 233 Key-Pair Generation with precomputation0.853.49
ECMQVC over GF(2^n) 233 Key Agreement3.8415.75

Throughput Geometric Average: 1275.495675

Test started at Sun Apr 9 16:09:08 2017
Test ended at Sun Apr 9 16:53:25 2017