Skip to content

Instantly share code, notes, and snippets.

@smram
Created October 10, 2017 20:08
Show Gist options
  • Save smram/cce12c050e12a8cad93d66c549df422b to your computer and use it in GitHub Desktop.
Save smram/cce12c050e12a8cad93d66c549df422b to your computer and use it in GitHub Desktop.
bash | max mem usage
# osx
/usr/bin/time -l `ls`
# linux
/usr/bin/time -v `ls`
# from here: https://stackoverflow.com/questions/774556/peak-memory-usage-of-a-linux-unix-process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment