OpenSSH slow on OSX High Sierra (maybe due to libcrypto)?

Darren Tucker dtucker at dtucker.net
Fri Jul 13 19:10:06 AEST 2018


On 12 July 2018 at 18:10, Darren Tucker <dtucker at dtucker.net> wrote:
[...]
> compiler: information not available
> rsa  512 bits 0.000964s 0.000059s   1037.3  16987.1
> rsa 1024 bits 0.006052s 0.000271s    165.2   3687.3
> rsa 2048 bits 0.040528s 0.001145s     24.7    873.6
> rsa 4096 bits 0.278889s 0.004272s      3.6    234.1
>
> $ libressl-2.2.7/apps/openssl speed rsa
> [...]
> options:bn(64,64) rc4(16x,int) des(idx,cisc,16,int) aes(partial)
> idea(int) blowfish(idx)
> compiler: information not available
>                   sign    verify    sign/s verify/s
> rsa  512 bits 0.000074s 0.000008s  13466.5 130066.4
> rsa 1024 bits 0.000271s 0.000017s   3690.6  57557.5
> rsa 2048 bits 0.001665s 0.000054s    600.6  18684.4
> rsa 4096 bits 0.011938s 0.000195s     83.8   5121.7

Someone suggested that Apple might be shipping with assembler
optimizations disabled.  That might be part of it (about a 2.5x
slowdown compared to with them) but it would still leave an order of
magnitude unaccounted for.

Local build with --disable-asm:
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000191s 0.000016s   5236.4  62283.9
rsa 1024 bits 0.000863s 0.000046s   1158.4  21805.9
rsa 2048 bits 0.005286s 0.000148s    189.2   6765.1
rsa 4096 bits 0.035035s 0.000515s     28.5   1941.7

-- 
Darren Tucker (dtucker at dtucker.net)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list