openssl-0.9.7/util/speed.sh
#!/bin/sh ## This is a ugly script use, in conjuction with editing the 'b'# configuration in the $(TOP)/Configure script which will# output when finished a file called speed.log which is the# timings of SSLeay with various options turned on or off.## from the $(TOP) directory# Edit Configure, modifying things to do with the b/bl-4c-2c etc# configurations.# make cleanperl Configure bmakeapps/ssleay version -v -b -f >speed.1apps/ssleay speed >speed.1l perl Configure bl-4c-2c/bin/rm -f crypto/rc4/*.o crypto/bn/bn*.o crypto/md2/md2_dgst.omakeapps/ssleay speed rc4 rsa md2 >speed.2l perl Configure bl-4c-ri/bin/rm -f crypto/rc4/rc4*.omakeapps/ssleay speed rc4 >speed.3l perl Configure b2-is-ri-dp/bin/rm -f crypto/idea/i_*.o crypto/rc4/*.o crypto/des/ecb_enc.o crypto/bn/bn*.oapps/ssleay speed rsa rc4 idea des >speed.4l cat speed.1 >speed.logConsider using { cmd1; cmd2; } >> file instead of individual redirects.cat speed.1l >>speed.logperl util/sp-diff.pl speed.1l speed.2l >>speed.logperl util/sp-diff.pl speed.1l speed.3l >>speed.logperl util/sp-diff.pl speed.1l speed.4l >>speed.log