Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
speed test - libressl default vs openssl binary supplied with Ubuntu 12.04 on Xeon 3 Ghz
OpenSSL
bcook@testing02:~/libressl$ /usr/bin/openssl speed aes
Doing aes-128 cbc for 3s on 16 size blocks: 17657948 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 64 size blocks: 5088345 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 256 size blocks: 1297264 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 1024 size blocks: 324907 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 8192 size blocks: 40847 aes-128 cbc's in 3.00s
Doing aes-192 cbc for 3s on 16 size blocks: 16173463 aes-192 cbc's in 2.99s
Doing aes-192 cbc for 3s on 64 size blocks: 4271739 aes-192 cbc's in 2.99s
Doing aes-192 cbc for 3s on 256 size blocks: 1084255 aes-192 cbc's in 2.99s
Doing aes-192 cbc for 3s on 1024 size blocks: 271958 aes-192 cbc's in 2.99s
Doing aes-192 cbc for 3s on 8192 size blocks: 31395 aes-192 cbc's in 2.99s
Doing aes-256 cbc for 3s on 16 size blocks: 14040406 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 3692386 aes-256 cbc's in 2.99s
Doing aes-256 cbc for 3s on 256 size blocks: 934709 aes-256 cbc's in 2.99s
Doing aes-256 cbc for 3s on 1024 size blocks: 234177 aes-256 cbc's in 2.99s
Doing aes-256 cbc for 3s on 8192 size blocks: 29267 aes-256 cbc's in 2.99s
OpenSSL 1.0.1 14 Mar 2012
built on: Mon Apr 7 20:33:29 UTC 2014
options:bn(64,64) rc4(16x,int) des(idx,cisc,16,int) aes(partial) blowfish(idx)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack -Wall -DOPENSSL_NO_TLS1_2_CLIENT -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 -DMD32_REG_T=int -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
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-128 cbc 94490.69k 108914.41k 111070.09k 111272.50k 111539.54k
aes-192 cbc 86546.96k 91435.22k 92832.54k 93138.79k 86016.00k
aes-256 cbc 74882.17k 79034.35k 80028.60k 80199.75k 80185.71k
LibreSSL (built with "-Wall -std=c99 -O2")
bcook@testing02:~/libressl$ ./apps/openssl speed aes
Doing aes-128 cbc for 3s on 16 size blocks: 28081957 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 64 size blocks: 8109153 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 256 size blocks: 2061280 aes-128 cbc's in 3.00s
Doing aes-128 cbc for 3s on 1024 size blocks: 517179 aes-128 cbc's in 2.98s
Doing aes-128 cbc for 3s on 8192 size blocks: 60802 aes-128 cbc's in 3.00s
Doing aes-192 cbc for 3s on 16 size blocks: 26329825 aes-192 cbc's in 2.99s
Doing aes-192 cbc for 3s on 64 size blocks: 7021978 aes-192 cbc's in 2.99s
Doing aes-192 cbc for 3s on 256 size blocks: 1780707 aes-192 cbc's in 2.99s
Doing aes-192 cbc for 3s on 1024 size blocks: 446831 aes-192 cbc's in 2.99s
Doing aes-192 cbc for 3s on 8192 size blocks: 55801 aes-192 cbc's in 2.99s
Doing aes-256 cbc for 3s on 16 size blocks: 23608539 aes-256 cbc's in 3.00s
Doing aes-256 cbc for 3s on 64 size blocks: 6176801 aes-256 cbc's in 2.99s
Doing aes-256 cbc for 3s on 256 size blocks: 1561450 aes-256 cbc's in 2.99s
Doing aes-256 cbc for 3s on 1024 size blocks: 391403 aes-256 cbc's in 2.99s
Doing aes-256 cbc for 3s on 8192 size blocks: 48838 aes-256 cbc's in 2.99s
OpenSSL 1.0.1g 7 Apr 2014
built on: date not available
options:bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(idx)
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
aes-128 cbc 150271.34k 173573.84k 175895.89k 177715.20k 166029.99k
aes-192 cbc 140895.38k 150303.21k 152461.87k 153028.41k 152883.54k
aes-256 cbc 125912.21k 132212.46k 133689.36k 134045.71k 133806.32k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment