[Python-Dev] windows 2.5 build: use OpenSSL for hashlib [bug 1535502]
Gregory P. Smith
greg at electricrain.com
Tue Aug 8 10:43:42 CEST 2006
On Tue, Aug 08, 2006 at 08:26:08AM +0200, "Martin v. L?wis" wrote:
> Gregory P. Smith schrieb:
> > Widely deployed popular applications use python for both large scale
> > hashing and ssl communications.
>
> Yet, nobody has worried about performance in all these years to notice
> that the assembler code isn't being used. So it can't be that bad.
> For SSL specifically, the usage of hashing is minimal, as the actual
> communication uses symmetric encryption.
OpenSSL uses x86 asm to speed up other things besides hashes. For SSL
sockets each new connection requires an RSA or DSA public key
operation for the symmetric key exchange. Huge speedup there:
2ghz pentium-m with C ssl:
sign verify sign/s verify/s
rsa 1024 bits 0.007576s 0.000368s 132.0 2715.4
sign verify sign/s verify/s
dsa 1024 bits 0.003655s 0.004409s 273.6 226.8
2ghz pentium-m with x86 asm ssl:
sign verify sign/s verify/s
rsa 1024 bits 0.003410s 0.000171s 293.3 5843.5
sign verify sign/s verify/s
dsa 1024 bits 0.001632s 0.001987s 612.9 503.4
[data comes from running "out32\openssl speed" in openssl 0.9.8b]
More information about the Python-Dev
mailing list