Skip to content

Instantly share code, notes, and snippets.

@tycho
Created May 20, 2016 15:34
Show Gist options
  • Select an option

  • Save tycho/db180fe71d77f89667b4930e88c331e5 to your computer and use it in GitHub Desktop.

Select an option

Save tycho/db180fe71d77f89667b4930e88c331e5 to your computer and use it in GitHub Desktop.
openssl hash speeds on Haswell
OpenSSL 1.0.2h 3 May 2016
built on: reproducible build, date unspecified
options:bn(64,64) rc4(16x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(idx)
compiler: gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wl,-O1,--sort-common,--as-needed,-z,relro -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
mdc2 11162.69k 8729.17k 8831.14k 8834.48k 11446.88k
md4 67800.77k 206300.20k 470452.99k 704249.86k 823265.96k
md5 40618.65k 124262.12k 282748.25k 432961.54k 499769.34k
hmac(md5) 40504.79k 120675.48k 287022.85k 428883.97k 477916.90k
sha1 55448.09k 162115.26k 385263.27k 579999.40k 671815.00k
sha256 51960.14k 118347.24k 238890.33k 295489.88k 305864.70k
sha512 37584.92k 147944.11k 249499.56k 378161.83k 448544.77k
whirlpool 20602.90k 51071.72k 81848.92k 99642.03k 108489.39k
rmd160 28107.86k 79173.74k 141372.67k 178635.43k 192640.34k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment