2
0

speed.sh 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. #
  3. # This is a ugly script use, in conjuction with editing the 'b'
  4. # configuration in the $(TOP)/Configure script which will
  5. # output when finished a file called speed.log which is the
  6. # timings of SSLeay with various options turned on or off.
  7. #
  8. # from the $(TOP) directory
  9. # Edit Configure, modifying things to do with the b/bl-4c-2c etc
  10. # configurations.
  11. #
  12. make clean
  13. perl Configure b
  14. make
  15. apps/ssleay version -v -b -f >speed.1
  16. apps/ssleay speed >speed.1l
  17. perl Configure bl-4c-2c
  18. /bin/rm -f crypto/rc4/*.o crypto/bn/bn*.o crypto/md2/md2_dgst.o
  19. make
  20. apps/ssleay speed rc4 rsa md2 >speed.2l
  21. perl Configure bl-4c-ri
  22. /bin/rm -f crypto/rc4/rc4*.o
  23. make
  24. apps/ssleay speed rc4 >speed.3l
  25. perl Configure b2-is-ri-dp
  26. /bin/rm -f crypto/idea/i_*.o crypto/rc4/*.o crypto/des/ecb_enc.o crypto/bn/bn*.o
  27. apps/ssleay speed rsa rc4 idea des >speed.4l
  28. cat speed.1 >speed.log
  29. cat speed.1l >>speed.log
  30. perl util/sp-diff.pl speed.1l speed.2l >>speed.log
  31. perl util/sp-diff.pl speed.1l speed.3l >>speed.log
  32. perl util/sp-diff.pl speed.1l speed.4l >>speed.log