Slow connection performance with ssh2

Gert Doering gert at greenie.muc.de
Mon Nov 5 19:11:29 EST 2001


Hi,

On Sun, Nov 04, 2001 at 10:55:49PM +0100, Markus Friedl wrote:
> > [ssh protocol 1: 5 s, protocol 2: over 2 minutes ]
> 
> so DH is probably slow on your machine. doing RSA twice
> seems faster. you could try to run
> 	$ openssl speed

OK, here we go (I reduced the lengthy output to those that seemed "the
necessary ones", if I missed some, plese tell me)...

Doing 512 bit private rsa's for 10s: 22 512 bit private RSA's in 10.30s
Doing 512 bit public rsa's for 10s: 180 512 bit public RSA's in 9.90s
Doing 1024 bit private rsa's for 10s: 4 1024 bit private RSA's in 12.45s
Doing 1024 bit public rsa's for 10s: 51 1024 bit public RSA's in 9.92s
Doing 2048 bit private rsa's for 10s: 1 2048 bit private RSA's in 21.92s
Doing 2048 bit public rsa's for 10s: 14 2048 bit public RSA's in 10.70s
Doing 512 bit sign dsa's for 10s: 19 512 bit DSA signs in 10.13s
Doing 512 bit verify dsa's for 10s: 12 512 bit DSA verify in 8.60s
Doing 1024 bit sign dsa's for 10s: 6 1024 bit DSA signs in 10.96s
Doing 1024 bit verify dsa's for 10s: 5 1024 bit DSA verify in 11.14s
Doing 2048 bit sign dsa's for 10s: 2 2048 bit DSA signs in 13.26s
Doing 2048 bit verify dsa's for 10s: 2 2048 bit DSA verify in 16.57s

OpenSSL 0.9.5a 1 Apr 2000
built on: Sun Aug 19 19:35:28 CST 2001
options:bn(32,32) md2(int) rc4(ptr,int) des(idx,cisc,4,long) blowfish(idx)
compiler: cc -O2  -Werror
The 'numbers' are in 1000s of bytes per second processed.
type              8 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md2                 17.11k       47.11k       62.41k       69.65k       72.05k
mdc2                38.91k       39.57k       39.38k       39.73k       39.77k
md5                213.45k      620.71k     1557.61k     2461.04k     2867.20k
hmac(md5)           69.79k      359.11k     1074.42k     2079.17k     2829.71k
sha1                66.56k      266.33k      431.62k      517.19k      542.48k
rmd160              61.47k      270.02k      448.86k      537.17k      567.14k
rc4                864.00k     1229.81k     1271.96k     1252.09k     1284.53k
des cbc            241.98k      274.42k      275.09k      275.46k      278.53k
des ede3            77.82k       87.54k       88.83k       90.20k       89.04k
idea cbc             0.00         0.00         0.00         0.00         0.00
rc2 cbc            325.26k      388.52k      398.02k      413.24k      401.15k
rc5-32/12 cbc        0.00         0.00         0.00         0.00         0.00
blowfish cbc       399.95k      480.22k      497.46k      502.59k      514.77k
cast cbc           421.64k      425.26k      434.34k      436.68k      436.91k
                  sign    verify    sign/s verify/s
rsa  512 bits   0.4682s   0.0550s      2.1     18.2
rsa 1024 bits   3.1125s   0.1945s      0.3      5.1
rsa 2048 bits  21.9200s   0.7193s      0.0      1.4
                  sign    verify    sign/s verify/s
dsa  512 bits   0.5332s   0.6717s      1.9      1.5
dsa 1024 bits   1.8267s   2.2280s      0.5      0.4
dsa 2048 bits   6.6300s   8.2850s      0.2      0.1

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert.doering at physik.tu-muenchen.de



More information about the openssh-unix-dev mailing list