> > > you checked in the script to generate shared library support on HP-UX.
> > > In order to achieve maximum perfomance it utilizes +O4 optimization,
> > Lutz! I wonder if you could post output from 'openssl speed' from
> > programs compiled with +O4 and +O3. Along with how large are those
> > programs (or shared libraries:-). What I really want to figure out is
> > does interprocedural analysis really improve openssl performance? As
> > there're no statically allocated data the only thing left they can do is
> > function inlining (at the cost of larger code).
Well, one can also eliminate code which is never referenced (can be
explicitely added with +Oprocelim at +O3 level) and rearrange code
snippets in order to minimize page faults and tlb misses.
> > If performance gain is
> > notable it might worth inlining in C so that all users can benefit:-) At
> > the very least I could boost RC5 performance by 20-30% by inlining, but
> > it made no (notable) difference to MD2.
>
> Ok, I will do it tomorrow.
> - I just ran something preliminary, but only had +O4 shared (position
> independent code) and +O3 static (not PIC) available. The +O3 code
> was faster by some 5%, but I am afraid I did compare apples with oranges.
> Tomorrow I will compare lemon with lemon :-)
> - Can you be more specific? During the first test it seems, that I got hit
> by the "speed DSA hang bug" posted for Solaris this morning. I am at home
> now and too lazy to check the mail archive, but was there already a fix
> posted? HP-UX does not have /dev/urandom and openssl speed has no switch
> for a rand source (that was the reason, wasn't it?).
Something like this shall get you all the way through the whole test:-)
*** speed.c.orig Wed Mar 1 11:39:23 2000
--- speed.c Wed Mar 1 11:32:56 2000
****************** 1028,1033 ****
--- 1028,1034 ----
}
#endif
+ RAND_seed (buf,BUFSIZE);
RAND_pseudo_bytes(buf,20);
#ifndef NO_DSA
for (j=0; j<DSA_NUM; j++)
> There is another warning about building shared libraries
> with optimization > +O2 anyway :-)
Which is... Just curious...
Andy.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]