Created
April 19, 2017 15:06
-
-
Save jsborjesson/d6743e470d5dd8767896f2036cb94a51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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