Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created January 12, 2011 10:32
Show Gist options
  • Select an option

  • Save KristianLyng/775992 to your computer and use it in GitHub Desktop.

Select an option

Save KristianLyng/775992 to your computer and use it in GitHub Desktop.
kristian@freud:~$ time for a in {1..2000}; do echo $(hostname) > /dev/null; done
real 0m3.619s
user 0m0.240s
sys 0m0.590s
kristian@freud:~$ time for a in {1..2000}; do echo $HOSTNAME > /dev/null; done
real 0m0.046s
user 0m0.030s
sys 0m0.010s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment