Marius Peschke
Hi Community,
It seems my first message was sorted under a different topic, so i will post it
again.
I, am a developer for a networkdevice-manufracturer in germany,
To enhance the En-/Decryption speed on the embedded devices (here i will use a
for the explanation a PowerPc mpc8314), I upgraded Openssl to 1.0.0e from
0.9.8i.
I was very happy that the AES-speed improved by roughly 10-15% without even
using the new powerpc assembler optimizations for AES(couldnt get them to work
properly, but this is a different topic).
(Measurements made by "openssl speed aes-128-cbc aes-256-cbc")
No Crypto-hardware was used.
OpenSSL 1.0.0e 6 Sep 2011
aes-128 cbc 11085.48 12129.82 12382.71 12483.78 12414.63
aes-256 cbc 8912.24 9502.18 9735.55 9782.76 9756.72
OpenSSL 0.9.8i 15 Sep 2008
aes-128 cbc 9707.48 10430.82 10618.17 10647.76 10549.85
aes-256 cbc 8080.35 8510.50 8635.44 8657.24 8578.82
Sadly I had to experience that my MD5-speed dropped by roughly 20-25% again
without using assembler optimization.(Measurements made by "openssl speed md5")
OpenSSL 1.0.0e 6 Sep 2011
md5 714.68 2682.57 9292.63 24498.58 45192.34
OpenSSL 0.9.8i 15 Sep 2008
md5 886.73 3305.32 11176.01 27484.39 45989.39
To identify if the problem of the dropping MD5-speed was only caused on my
device I also tested the MD5 speed on my Core i5 Ubuntu 11.04. I used ./config
no-asm no-hw
and then make install.
But even on my Linux the MD5-speed dropped from:
OpenSSL 0.9.8i 15 Sep 2008
built on: Fri Dec 9 10:18:39 CET 2011
options:bn(64,64) md2(int) rc4(ptr,int) des(idx,cisc,16,int) aes(partial)
idea(int) blowfish(ptr2)
compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64
-DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int
md5 51627.43k 154049.41k 347742.01k 505215.23k 581588.16k
to:
OpenSSL 1.0.0e 6 Sep 2011
built on: Fri Dec 9 10:07:25 CET 2011
options:bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) aes(partial) idea(int)
blowfish(idx)
compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H
-Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int
md5 29098.42k 97613.06k 260005.76k 450710.35k 575437.31k
I tested also with "OpenSSL 1.0.0 29 Mar 2010" and "OpenSSL 0.9.8r 8 Feb 2011".
The 1.x.x Version was always the slower one.
So now I wonder how is it possible that the Md5-speed dropped so much.
Hopefully someone can give my inside on this.
Sincerly,
Marius Peschke
I dont know if attachments work so I will post the table with as a text with
tabs.
aes-128-cbc aes-256-cbc
Networkdevice 16 64 256 1024
8192 16 64 256 1024
8192
PPC-1.0.0e 11064.49 12140.69 12422.89 12503.41
12411.11 8921.2 9560.9 9761.63 9715.21
9727.82
PPC-0.9.8i 9760.35 10440.11 10626.1 10661.79
10605.18 8064.89 8521.63 8646.02 8664.67
8529.88
-13.3616110078 -16.2889088333 -16.9092141049 -17.2730845383
-17.0287538731 -10.617751761 -12.1956714854 -12.9031623799 -12.1244086618
-14.0440428236
Linux
x86-64-1.0.0e 213323.84 222858.19 223810.7 225289.93
225425.21 165721.82 169828.22 170073.13 170700.12
171155.26
x86-64-0.9.8i 190333.68 207542.29 208195.9 209964.18
210956.33 153256.83 160208.5 161017.75 161599.53
163773.8
-12.0788711698 -7.3796526 -7.5000516341 -7.2992212291
-6.8587086247 -8.1333993402 -6.0045003854 -5.6238396077 -5.6315695968
-4.507106753
MD4 MD5
16 64 256 1024
8192 16 64 256 1024
8192
PPC-1.0.0e 892.37 3268.94 11430.01 30524.14
58415.32 712.89 2677.96 9119.8 24131.56
45450.03
PPC-0.9.8i 1301.05 4803.64 15950.7 37656.63
61056.64 977.39 3629.45 12093.43 28810.73
47161.25
31.4115522078 31.9486889109 28.3416401788 18.9408611445
4.3260159747 27.0618688548 26.2158178236 24.5888056573 16.2410671302
3.6284449628
x86-64-1.0.0e 33839.62 119658.02 358015.06 710819.7
1002459.7 28514.43 95292.4 256459 443912.9
564083.59
x86-64-0.9.8i 67149.22 213675.64 531553.26 850197.4
1031671.44 50381.28 150356.36 339916.63 497043.09
572335.86
49.6053416555 44.0001583709 32.6473776118 16.3935693052
2.8314964307 43.4027281562 36.6223018434 24.5523821532 10.6892523141
1.4418579329
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]