adric.net

OpenSSLspeedRSA
Login

the output of the command `openssl speed rsa` on various platforms

Win 7 , Alienware X51r2

$ openssl speed rsa
Doing 512 bit private rsa's for 10s: 171643 512 bit private RSA's in 9.98s
Doing 512 bit public rsa's for 10s: 1614972 512 bit public RSA's in 10.00s
Doing 1024 bit private rsa's for 10s: 54464 1024 bit private RSA's in 10.00s
Doing 1024 bit public rsa's for 10s: 716494 1024 bit public RSA's in 10.00s
Doing 2048 bit private rsa's for 10s: 7451 2048 bit private RSA's in 10.00s
Doing 2048 bit public rsa's for 10s: 238248 2048 bit public RSA's in 10.00s
Doing 4096 bit private rsa's for 10s: 1074 4096 bit private RSA's in 10.00s
Doing 4096 bit public rsa's for 10s: 68274 4096 bit public RSA's in 10.00s
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.000058s 0.000006s  17191.8 161513.4
rsa 1024 bits 0.000184s 0.000014s   5446.4  71649.4
rsa 2048 bits 0.001342s 0.000042s    745.1  23827.2
rsa 4096 bits 0.009311s 0.000146s    107.4   6828.1

OS X 10.9.2 , Apple iMac 27"

lorelei:Work adric$ openssl speed rsa
Doing 512 bit private rsa's for 10s: 77441 512 bit private RSA's in 9.68s
Doing 512 bit public rsa's for 10s: 817279 512 bit public RSA's in 9.67s
Doing 1024 bit private rsa's for 10s: 24862 1024 bit private RSA's in 9.75s
Doing 1024 bit public rsa's for 10s: 303024 1024 bit public RSA's in 8.71s
Doing 2048 bit private rsa's for 10s: 3417 2048 bit private RSA's in 9.30s
Doing 2048 bit public rsa's for 10s: 117151 2048 bit public RSA's in 9.85s
Doing 4096 bit private rsa's for 10s: 489 4096 bit private RSA's in 9.73s
Doing 4096 bit public rsa's for 10s: 32544 4096 bit public RSA's in 9.89s
OpenSSL 1.0.1g 7 Apr 2014
built on: Mon Apr  7 15:08:30 PDT 2014
options:bn(64,64) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(idx) 
compiler: /usr/bin/clang -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -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.000125s 0.000012s   8000.1  84517.0
rsa 1024 bits 0.000392s 0.000029s   2549.9  34790.4
rsa 2048 bits 0.002722s 0.000084s    367.4  11893.5
rsa 4096 bits 0.019898s 0.000304s     50.3   3290.6

Ubuntu Ubuntu 12.04.1 LTS x64, Dell XPS 13

Intel(R) Core(TM) i7-2637M CPU @ 1.70GHz, 4 GB RAM
adric@valentina:~$ openssl speed rsa
Doing 512 bit private rsa's for 10s: 133856 512 bit private RSA's in 9.98s
Doing 512 bit public rsa's for 10s: 1698567 512 bit public RSA's in 9.98s
Doing 1024 bit private rsa's for 10s: 39652 1024 bit private RSA's in 9.98s
Doing 1024 bit public rsa's for 10s: 607674 1024 bit public RSA's in 9.98s
Doing 2048 bit private rsa's for 10s: 5544 2048 bit private RSA's in 9.98s
Doing 2048 bit public rsa's for 10s: 179596 2048 bit public RSA's in 9.98s
Doing 4096 bit private rsa's for 10s: 764 4096 bit private RSA's in 9.99s
Doing 4096 bit public rsa's for 10s: 48124 4096 bit public RSA's in 9.99s
OpenSSL 1.0.1 14 Mar 2012
built on: Tue Aug 21 05:18:48 UTC 2012
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
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000075s 0.000006s  13412.4 170197.1
rsa 1024 bits 0.000252s 0.000016s   3973.1  60889.2
rsa 2048 bits 0.001800s 0.000056s    555.5  17995.6
rsa 4096 bits 0.013076s 0.000208s     76.5   4817.2

Ubuntu 9.10 i686, some Dell minitower, gcc -O3

Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz, 4 GB RAM
ubuntu9:~/rt$ openssl speed rsa
Doing 512 bit private rsa's for 10s: 26576 512 bit private RSA's in 9.98s
Doing 512 bit public rsa's for 10s: 343913 512 bit public RSA's in 10.00s
Doing 1024 bit private rsa's for 10s: 5535 1024 bit private RSA's in 9.98s
Doing 1024 bit public rsa's for 10s: 127732 1024 bit public RSA's in 9.94s
Doing 2048 bit private rsa's for 10s: 1025 2048 bit private RSA's in 9.97s
Doing 2048 bit public rsa's for 10s: 41871 2048 bit public RSA's in 9.92s
Doing 4096 bit private rsa's for 10s: 172 4096 bit private RSA's in 10.01s
Doing 4096 bit public rsa's for 10s: 12728 4096 bit public RSA's in 9.98s
OpenSSL 0.9.8g 19 Oct 2007
built on: Wed Jan 13 20:01:44 UTC 2010
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx) 
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -march=i686 -Wa,--noexecstack -g -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
available timing options: TIMES TIMEB HZ=100 [sysconf value]
timing function used: times
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000376s 0.000029s   2662.9  34391.3
rsa 1024 bits 0.001803s 0.000078s    554.6  12850.3
rsa 2048 bits 0.009727s 0.000237s    102.8   4220.9
rsa 4096 bits 0.058198s 0.000784s     17.2   1275.4

iPhone 2G (first gen), iPhone OS 3.x, arm-apple-darwin9-gcc, -O3

cipher  sign/s  verify/s
rsa512  95.2  960.2
rsa1024  18.5  366.6
rsa2048  3.2 113.4
rsa4096  0.5  32.3

HTC Dream (T-Mobile G1), Android OS 2, CyanogenMod build 4.12.x

cipher  sign/s  verify/s
rsa512  270.7  2611.3
rsa1024  51.7  831.9
rsa2048  7.9  225.4
rsa4096  1.1  57.8

MacBook Pro 17 Intel Core 2 2.x GHz, Mac OS X 10.6.2

lorelei-lee-long:~ adric$ 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: 9315 512 bit private RSA's in 9.94s
Doing 512 bit public rsa's for 10s: 112494 512 bit public RSA's in 9.93s
Doing 1024 bit private rsa's for 10s: 1711 1024 bit private RSA's in 9.88s
Doing 1024 bit public rsa's for 10s: 32664 1024 bit public RSA's in 9.47s
Doing 2048 bit private rsa's for 10s: 275 2048 bit private RSA's in 9.85s
Doing 2048 bit public rsa's for 10s: 10010 2048 bit public RSA's in 9.85s
Doing 4096 bit private rsa's for 10s: 42 4096 bit private RSA's in 10.07s
Doing 4096 bit public rsa's for 10s: 2807 4096 bit public RSA's in 9.92s
OpenSSL 0.9.8l 5 Nov 2009
built on: Mon Nov 23 19:29:20 EST 2009
options:bn(64,32) md2(int) rc4(ptr,char) des(idx,cisc,16,long) aes(partial) idea(int) blowfish(ptr) 
compiler: /usr/bin/gcc-4.2 -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN
available timing options: TIMEB USE_TOD HZ=100 [sysconf value]
timing function used: getrusage
                  sign    verify    sign/s verify/s
rsa  512 bits 0.001068s 0.000088s    936.7  11326.5
rsa 1024 bits 0.005776s 0.000290s    173.1   3447.6
rsa 2048 bits 0.035821s 0.000984s     27.9   1016.3
rsa 4096 bits 0.239771s 0.003534s      4.2    283.0

grey , HP Chromebook 11dx

(kali)root@localhost:~# openssl speed rsa
Doing 512 bit private rsa's for 10s: 50368 512 bit private RSA's in 9.78s
Doing 512 bit public rsa's for 10s: 720125 512 bit public RSA's in 9.83s
Doing 1024 bit private rsa's for 10s: 14947 1024 bit private RSA's in 9.73s
Doing 1024 bit public rsa's for 10s: 240911 1024 bit public RSA's in 9.82s
Doing 2048 bit private rsa's for 10s: 2043 2048 bit private RSA's in 9.80s
Doing 2048 bit public rsa's for 10s: 69744 2048 bit public RSA's in 9.75s
Doing 4096 bit private rsa's for 10s: 280 4096 bit private RSA's in 9.79s
Doing 4096 bit public rsa's for 10s: 18525 4096 bit public RSA's in 9.81s
OpenSSL 1.0.2j  26 Sep 2016
built on: reproducible build, date unspecified
options:bn(64,64) rc4(16x,int) des(idx,cisc,16,int) aes(partial) blowfish(idx) 
compiler: gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -g -O2 -fdebug-prefix-map=/build/openssl-EOtuAM/openssl-1.0.2j=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wa,--noexecstack -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000194s 0.000014s   5150.1  73257.9
rsa 1024 bits 0.000651s 0.000041s   1536.2  24532.7
rsa 2048 bits 0.004797s 0.000140s    208.5   7153.2
rsa 4096 bits 0.034964s 0.000530s     28.6   1888.4