Skip to content

Instantly share code, notes, and snippets.

@Justintime50
Created November 11, 2020 17:18
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 Justintime50/f42e7e78c706dbdee1b7f2def857153a to your computer and use it in GitHub Desktop.
Save Justintime50/f42e7e78c706dbdee1b7f2def857153a to your computer and use it in GitHub Desktop.
Benchmarking commands for various things

Benchmarking

ZSH

$ for i in $(seq 1 5); do time zsh -i -c exit; done
zsh -i -c exit  0.18s user 0.18s system 97% cpu 0.364 total
zsh -i -c exit  0.19s user 0.19s system 98% cpu 0.382 total
zsh -i -c exit  0.18s user 0.19s system 99% cpu 0.372 total
zsh -i -c exit  0.19s user 0.20s system 98% cpu 0.391 total
zsh -i -c exit  0.19s user 0.19s system 99% cpu 0.386 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment