Skip to content

Instantly share code, notes, and snippets.

@deferraz
Created January 12, 2014 19:19
Show Gist options
  • Select an option

  • Save deferraz/8389141 to your computer and use it in GitHub Desktop.

Select an option

Save deferraz/8389141 to your computer and use it in GitHub Desktop.
openssl-benchmark-macbookair
➜ ~ openssl speed rsa
To get the most accurate results, try to run this
program when this computer is idle.
Doing 512 bit private rsa's for 10s: 35407 512 bit private RSA's in 9.91s
Doing 512 bit public rsa's for 10s: 525795 512 bit public RSA's in 9.93s
Doing 1024 bit private rsa's for 10s: 8110 1024 bit private RSA's in 9.94s
Doing 1024 bit public rsa's for 10s: 191825 1024 bit public RSA's in 9.94s
Doing 2048 bit private rsa's for 10s: 1425 2048 bit private RSA's in 9.96s
Doing 2048 bit public rsa's for 10s: 59780 2048 bit public RSA's in 9.94s
Doing 4096 bit private rsa's for 10s: 217 4096 bit private RSA's in 9.87s
Doing 4096 bit public rsa's for 10s: 15695 4096 bit public RSA's in 9.90s
OpenSSL 0.9.8y 5 Feb 2013
built on: Aug 24 2013
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2)
compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_IDEA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6
available timing options: TIMEB USE_TOD HZ=100 [sysconf value]
timing function used: getrusage
sign verify sign/s verify/s
rsa 512 bits 0.000280s 0.000019s 3574.4 52934.1
rsa 1024 bits 0.001226s 0.000052s 815.7 19305.8
rsa 2048 bits 0.006993s 0.000166s 143.0 6017.0
rsa 4096 bits 0.045498s 0.000631s 22.0 1584.6
➜ ~ openssl speed aes
To get the most accurate results, try to run this
program when this computer is idle.
Doing aes-128 cbc for 3s on 16 size blocks: 21834506 aes-128 cbc's in 2.97s
Doing aes-128 cbc for 3s on 64 size blocks: 5608660 aes-128 cbc's in 2.97s
Doing aes-128 cbc for 3s on 256 size blocks: 1443419 aes-128 cbc's in 2.99s
Doing aes-128 cbc for 3s on 1024 size blocks: 370821 aes-128 cbc's in 2.98s
Doing aes-128 cbc for 3s on 8192 size blocks: 42272 aes-128 cbc's in 2.96s
Doing aes-192 cbc for 3s on 16 size blocks: 18216411 aes-192 cbc's in 2.97s
Doing aes-192 cbc for 3s on 64 size blocks: 4782874 aes-192 cbc's in 2.98s
Doing aes-192 cbc for 3s on 256 size blocks: 1198141 aes-192 cbc's in 2.97s
Doing aes-192 cbc for 3s on 1024 size blocks: 299437 aes-192 cbc's in 2.98s
Doing aes-192 cbc for 3s on 8192 size blocks: 38354 aes-192 cbc's in 2.98s
Doing aes-256 cbc for 3s on 16 size blocks: 16859556 aes-256 cbc's in 2.98s
Doing aes-256 cbc for 3s on 64 size blocks: 4370892 aes-256 cbc's in 2.98s
Doing aes-256 cbc for 3s on 256 size blocks: 1056391 aes-256 cbc's in 2.97s
Doing aes-256 cbc for 3s on 1024 size blocks: 260532 aes-256 cbc's in 2.97s
Doing aes-256 cbc for 3s on 8192 size blocks: 33086 aes-256 cbc's in 2.97s
OpenSSL 0.9.8y 5 Feb 2013
built on: Aug 24 2013
options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2)
compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_IDEA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6
available timing options: TIMEB USE_TOD HZ=100 [sysconf value]
timing function used: getrusage
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-128 cbc 117490.57k 120738.50k 123614.54k 127458.56k 117068.69k
aes-192 cbc 98177.79k 102716.68k 103164.17k 102950.38k 105498.86k
aes-256 cbc 90488.80k 93835.83k 91103.56k 89852.36k 91383.68k
➜ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment