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

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