Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created December 29, 2012 19:51
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tmcw/4408971 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "raw kb"
units "`cat $1 | wc -c` bytes" "kilobytes"
echo "uglified kb"
units "`uglifyjs $1 | wc -c` bytes" "kilobytes"
echo "gzipped kb"
units "`uglifyjs $1 | gzip -9f | wc -c` bytes" "kilobytes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment