Skip to content

Instantly share code, notes, and snippets.

@jsborjesson
Created April 19, 2017 15:06
Show Gist options
  • Save jsborjesson/d6743e470d5dd8767896f2036cb94a51 to your computer and use it in GitHub Desktop.
Save jsborjesson/d6743e470d5dd8767896f2036cb94a51 to your computer and use it in GitHub Desktop.
# Measure startup time on a Ruby file
vim_startup_time=$((time vim Rakefile +q) 2>&1 >/dev/null | grep real | awk '{ print $2 }')
# Echo the results
echo $(git sha) " " $vim_startup_time
# Step back one commit without warnings
git checkout HEAD~ 2> /dev/null
# Recurse
./bisect_vim_startup_time.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment