-
-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Higher benchmarks in Vim's startuptime #666
Comments
Hm, interesting. Thank you for reporting this. Can you please try with |
Something weird is definitely going on
|
Oh wait,
and you should see the same behavior with Vim is printing a warning (Input is not from a terminal), and then exiting after 2s. |
Look at this: here are the mysterious 2 seconds (actually 2005 ms, to be precise): https://github.com/vim/vim/blob/4c0089d696b8d1d5dc40568f25ea5738fa5bbffb/src/main.c#L2802-L2807 |
I think you can maybe add
|
Wow! Let me take this info to the mailing list.
Yes, this helps. Now it is much more accurate (as compared to Thanks a lot! I am closing this. |
I am using
hyperfine 1.17.0
to test vim's startup time. And the results are almost 2s more than whattime
orvim --startuptime startuptime.log
are showing. I have tried not spawing the shell(-N)
, not loading any vim plugins, features etc. but still these benchmarks are persistent.vim --startuptime startuptime.log
also shows smaller number thanhyperfine
(note: this loads the plugins). A detailed log is here.Also,
strace
shows a similar picture astime
withsystime
being at around 10ms. Detailed log is here.The text was updated successfully, but these errors were encountered: