Time it takes to open a new terminal window
0
votes
1
answer
847
views
I just checked my timings: it takes about 0.41-0.45 seconds to open a new
gnome-terminal
window and about 0.55-0.65 seconds to open kitty
. And it does bother me a bit that it takes so much time to open (I want it to be close to instant, like UI elements are responding to mouse/keyboard events). I want some suggestions for either speeding up window open process or some terminal alternatives that open faster (I use kitty
for several years now). Maybe someone can share their timings, so I can compare mine to something (I didn't find anything about this issue on the Internet).
Here's a MWE:
terminal=kitty # gnome-terminal
date +%s.%N > .start; $terminal -- sh -c 'echo "$(date +%s.%N)-$(cat .start)" | bc | cut -c 2- > .diff; rm -f .start'; cat .diff; rm -f .diff
My config: Laptop with i7-8550U, SSD, Ubuntu 20.04.
P.S. I'm hoping soon to hop to Pop!_OS 22.04. After that, I'll check my timings again (perhaps they'll improve).
---
**Update**:
Tried with zero config using root:
* kitty
: 0.38-0.43 seconds
* gnome-terminal
: 0.41-0.46 seconds
---
**Update 2**:
Run ranger
using kitty
with root (0 conf.) and alacritty
(cargo crate is user-wide; 0 conf.):
* kitty
: 0.50-0.57 seconds
* alacritty
: 0.37-0.43 seconds
* alacritty
without ranger
: 0.22-0.28 seconds (*now we're talking*)
kitty
:
date +%s.%N > .start; kitty ranger --cmd 'shell echo "$(date +%%s.%N)-$(cat .start)" | bc | cut -c 2- > .diff; rm -f .start; kill $PPID'; cat .diff; rm -f .diff
alacritty
:
date +%s.%N > .start; alacritty -e ranger --cmd 'shell echo "$(date +%%s.%N)-$(cat .start)" | bc | cut -c 2- > .diff; rm -f .start; kill $PPID'; cat .diff; rm -f .diff
P.S. I use [ranger
](https://github.com/ranger/ranger) a lot (want to switch to [lf
](https://github.com/gokcehan/lf)) and 99% I open it with a shortcut bound to kitty ranger
command.
Asked by Andrew15_5
(271 rep)
Jan 9, 2023, 07:09 PM
Last activity: Jan 18, 2023, 11:48 PM
Last activity: Jan 18, 2023, 11:48 PM