Skip to content

Instantly share code, notes, and snippets.

@adaedra
Created May 18, 2016 18:25
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 adaedra/03d719c3ac2840d3876d4f7bb3bdc2b4 to your computer and use it in GitHub Desktop.
Save adaedra/03d719c3ac2840d3876d4f7bb3bdc2b4 to your computer and use it in GitHub Desktop.
adaedra › ll sample
-rw-r--r-- 1 adaedra wheel 1.0G May 18 20:22 sample
adaedra › time shasum -a 512 sample
91db271ec41220b0a608b32e59785b062bb06ca6df87c0750d44c10b17914f23ca87b5a486827a3a5dd34d56786c991ef58ac5c9f7d74b084b1fecec92034cf2 sample
shasum -a 512 sample 3.79s user 0.21s system 99% cpu 3.999 total
adaedra › time ruby -rdigest -e "puts Digest::SHA512.file('sample').hexdigest"
91db271ec41220b0a608b32e59785b062bb06ca6df87c0750d44c10b17914f23ca87b5a486827a3a5dd34d56786c991ef58ac5c9f7d74b084b1fecec92034cf2
ruby -rdigest -e "puts Digest::SHA512.file('sample').hexdigest" 1.76s user 0.25s system 99% cpu 2.015 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment