Skip to content

Instantly share code, notes, and snippets.

@yak1ex
Last active August 29, 2015 14:00
Show Gist options
  • Save yak1ex/9c331cb534797c8b34e7 to your computer and use it in GitHub Desktop.
Save yak1ex/9c331cb534797c8b34e7 to your computer and use it in GitHub Desktop.
openssl speed rsa

Cygwin32 @ Windows 8.1 Pro / Core i7 4500U 1.8GHz

OpenSSL 1.0.1g 7 Apr 2014
built on: Tue Apr  8 11:04:36 CEST 2014
options:bn(64,32) md2(int) rc4(8x,mmx) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: gcc -D_WINDLL -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS  -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000144s 0.000016s   6923.1  62466.3
rsa 1024 bits 0.000778s 0.000045s   1284.7  22272.9
rsa 2048 bits 0.005184s 0.000162s    192.9   6154.2
rsa 4096 bits 0.039035s 0.000614s     25.6   1629.5

Cygwin64 @ Windows 8.1 Pro / Core i7 4500U 1.8GHz

OpenSSL 1.0.1g 7 Apr 2014
built on: Tue Apr  8 10:41:45 CEST 2014
options:bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) aes(partial) blowfish(idx)
compiler: gcc -D_WINDLL -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS  -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -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
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000057s 0.000006s  17656.7 161608.7
rsa 1024 bits 0.000168s 0.000013s   5937.9  74845.7
rsa 2048 bits 0.001282s 0.000041s    779.9  24545.2
rsa 4096 bits 0.009009s 0.000145s    111.0   6897.3

FreeBSD 9-STABLE system / Celeron E3200 2.40GHz

OpenSSL 0.9.8y 5 Feb 2013
built on: date not available
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: cc
available timing options: USE_TOD HZ=128 [sysconf value]
timing function used: getrusage
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000535s 0.000045s   1868.3  22222.3
rsa 1024 bits 0.002633s 0.000129s    379.8   7764.9
rsa 2048 bits 0.016233s 0.000430s     61.6   2326.1
rsa 4096 bits 0.102772s 0.001518s      9.7    658.8

FreeBSD 9-STABLE ports / Celeron E3200 2.40GHz

OpenSSL 1.0.1g 7 Apr 2014
built on: Mon Apr 28 21:09:18 JST 2014
options:bn(64,32) rc4(8x,mmx) des(ptr,risc1,16,long) aes(partial) idea(int) blowfish(idx)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -pthread -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall -O2 -pipe -march=prescott -fno-strict-aliasing -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000269s 0.000024s   3710.8  42524.5
rsa 1024 bits 0.001395s 0.000074s    716.6  13498.8
rsa 2048 bits 0.009121s 0.000268s    109.6   3732.3
rsa 4096 bits 0.065584s 0.001045s     15.2    957.1

FreeBSD 9-STABLE system / Pentium M 1.3GHz

OpenSSL 0.9.8y 5 Feb 2013
built on: date not available
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: cc
available timing options: USE_TOD HZ=128 [sysconf value]
timing function used: getrusage
                  sign    verify    sign/s verify/s
rsa  512 bits 0.001175s 0.000094s    851.1  10589.5
rsa 1024 bits 0.005671s 0.000268s    176.3   3736.6
rsa 2048 bits 0.032801s 0.000880s     30.5   1135.8
rsa 4096 bits 0.211360s 0.003068s      4.7    326.0

FreeBSD 9-STABLE ports / Pentium M 1.3GHz

OpenSSL 1.0.1g 7 Apr 2014
built on: Tue Apr  8 23:06:15 JST 2014
options:bn(64,32) md2(int) rc4(8x,mmx) des(ptr,risc1,16,long) aes(partial) idea(int) blowfish(idx)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -pthread -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall -O2 -pipe -march=pentium-m -fno-strict-aliasing -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000641s 0.000058s   1560.0  17307.6
rsa 1024 bits 0.003599s 0.000194s    277.9   5157.7
rsa 2048 bits 0.024286s 0.000727s     41.2   1375.3
rsa 4096 bits 0.179261s 0.002849s      5.6    351.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment