On Fri, Feb 27, 2004, Ujval Lodha wrote:

> I'm testing Triple DES encryption speeds with the OpenSSL library on Linux
> on my machine.
> 
> With dynamic linking, I get about 16 Mbytes per second whereas with static
> linking, I get only about 5 Mbytes per second. For compiling, I used:
> 
> DYNAMIC: gcc testdes.c -o testdes-dyn -lcrypto
> STATIC:  gcc testdes.c -o testdes-sta -lcrypto -static
> 
> GCC is version 2.96 on Redhat 7.3. I have also tried gcc 3.2.2 on Redhat 9
> with the same results.
> 
> Why is this so? Please find below the code I used for the test (testdes.c).
> 

Have you tried compiling and linking against versions of OpenSSL you've
compiled from source? Just to make sure it isn't something silly like one
library is compiled with assembly language DES routines and the other isn't.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to