4 ms·
tl;dr: If you're seeing unreasonably short startup times, try `hyperfine 'bash -i'` instead. Funny, I thought my startup time was going to be ginormous, consid
by l0b0 5y ago
tl;dr: If you're seeing unreasonably short startup times, try `hyperfine 'bash -i'` instead.
Funny, I thought my startup time was going to be ginormous, considering I've literally committed to it 203 times so far[1]. Nope, 1.4 to 4.3 ms.
Update: Eyeballing the startup time it's definitely over a second, so I'm guessing OP is measuring something different from what I'm seeing. `hyperfine bash` is also below 5 ms, so I'm not sure how to measure actual startup time. `hyperfine 'bash -i'` does the trick, showing ~650 ms startup times. Turns out another blogger found this already[2] :)
[1] https://gitlab.com/victor-engmark/tilde/-/blob/153d9cbb4a8620ebbe2f24c093ac404a38257fa4/.bashrc https://gitlab.com/victor-engmark/tilde/-/blob/153d9cbb4a862...
[2] https://work.lisk.in/2020/11/20/even-faster-bash-startup.html https://work.lisk.in/2020/11/20/even-faster-bash-startup.htm...