Skip to content

Instantly share code, notes, and snippets.

@alisaifee
Created June 24, 2012 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alisaifee/2981363 to your computer and use it in GitHub Desktop.
Save alisaifee/2981363 to your computer and use it in GitHub Desktop.
ali ~> wc -l
1000000 data_dupes.txt
ali ~> /bin/sort --version | grep coreutils
sort (coreutils) 5.2.1
ali ~> time bash -c "/bin/sort data_dupes.txt | uniq -c | sort -n > /dev/null"
12.91user 0.07system
ali ~> ~/bin/sort --version | grep coreutils
sort (GNU coreutils) 8.13
ali ~> time bash -c "~/bin/sort data_dupes.txt | ~/bin/uniq -c | ~/bin/sort -n > /dev/null"
3.86user 0.09system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment