home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume24 / yabbawhap / part04 / tryap < prev    next >
Encoding:
Text File  |  1991-10-09  |  770 b   |  24 lines

  1. #!/bin/csh -f
  2. # Public domain.
  3. ./whap < /dev/null > /dev/null
  4. date
  5. echo -n '1. whap time: '
  6. time ./whap -q < $1 > try.AP
  7. echo -n '2. unwhap time: '
  8. time ./unwhap -q < try.AP > try.AP.U
  9. echo '3. comparing: (should not produce further output)'
  10. cmp try.AP.U $1
  11. echo -n '4. compress time: '
  12. time compress < $1 > try.Z
  13. echo -n '5. uncompress time: '
  14. time uncompress < try.Z > try.Z.U
  15. echo '6. comparing: (should not produce further output)'
  16. cmp try.Z.U $1
  17. echo '7. file sizes:'
  18. ls -lds $1 try.AP try.Z
  19. echo '8. percentages: '
  20. echo -n 'AP to original: '; expr `wc -c < try.AP` '*' 100 / `wc -c < $1`
  21. echo -n 'Z to original: '; expr `wc -c < try.Z` '*' 100 / `wc -c < $1`
  22. echo -n 'AP to Z: '; expr `wc -c < try.AP` '*' 100 / `wc -c < try.Z`
  23. rm -f try.AP try.Z try.AP.U try.Z.U
  24.