Post AYVdcfjYDggB7dHzPs by dnkl@linuxrocks.online
 (DIR) More posts by dnkl@linuxrocks.online
 (DIR) Post #AYSD7IFSJ7xp1Xi2bo by YaLTeR@mastodon.online
       2023-08-02T06:12:45Z
       
       0 likes, 0 repeats
       
       I've been reunited with my latency tester 👀
       
 (DIR) Post #AYSD7J1JRCFFPy6GCe by YaLTeR@mastodon.online
       2023-08-04T03:54:26Z
       
       0 likes, 0 repeats
       
       This time I wanted to do some more thorough looking at the data before deciding on the thresholding approach, but it seems that the plotly frontend starts to really struggle when you feed it several seconds of data sampled multiple times per millisecond 🙃
       
 (DIR) Post #AYSD7Jhqt2GxXu0EVc by YaLTeR@mastodon.online
       2023-08-05T12:18:15Z
       
       0 likes, 1 repeats
       
       Got some initial results on the terminals.As expected, VTE is *really slow* on big window sizes on Wayland due to Cairo and weird repaint timing logic. But what is Black Box doing to lose more than a refresh cycle?Glad to see Alacritty still on top, but apparently Foot is a tiny bit faster on this test. Kitty loses one refresh cycle for some reason.
       
 (DIR) Post #AYSD7KTi16YNwKOS6S by YaLTeR@mastodon.online
       2023-08-05T12:57:31Z
       
       0 likes, 0 repeats
       
       Added Contour terminal (how come there are so many new terminal engines written from scratch lately, yet no new GTK 4 terminal widget?)
       
 (DIR) Post #AYSD7Ka5dNeqG7NY36 by YaLTeR@mastodon.online
       2023-08-05T12:23:33Z
       
       0 likes, 0 repeats
       
       @raggesilver any idea why Black Box could be slower here? It might be a methodology mistake on my part, but the only other difference I can think of from other terminals is that Black Box is running in Flatpak, but I'm pretty sure this shouldn't cause a difference here.
       
 (DIR) Post #AYSD7KbrWn4kLcCxoO by YaLTeR@mastodon.online
       2023-08-05T12:26:21Z
       
       0 likes, 0 repeats
       
       I'm not sure why GTK 3 VTE is better than GTK 4. Maybe due to "native" Cairo support in GTK 3?
       
 (DIR) Post #AYSD7L5zilB7r4J1mK by YaLTeR@mastodon.online
       2023-08-05T14:40:42Z
       
       0 likes, 0 repeats
       
       Now for something different: emulators! Here "New Highscore" is the work-in-progress Highscore rewrite @alice is working on, "Old Highscore" is the current latest Highscore git commit, and "GNOME Games" is the latest Games from Flathub.It's quite interesting how RetroArch seems to have a two-frame spread rather than one, something's off in its processing. Also interesting how MGBA is one frame slower than Gambatte. For Highscore, good to see GTK 4 improving the latency.
       
 (DIR) Post #AYSD7LuKhbRcNBrEEy by YaLTeR@mastodon.online
       2023-08-06T12:06:07Z
       
       2 likes, 4 repeats
       
       Today I've been visited by kchibisov (Alacritty maintainer) and we've spent several hours benchmarking terminals and editors. 😴 For this test we measured a complex drawing test from vtebench[1]. Key press fills the screen with a complex pattern. I measure the latency from the key press to seeing the pattern at the end of the screen.Foot ended up firmly ahead, followed by Kitty and Alacritty. Other terminals struggle a bit more with it.[1]: https://github.com/alacritty/vtebench
       
 (DIR) Post #AYSD7MkRZr80yoEqSu by YaLTeR@mastodon.online
       2023-08-06T12:13:56Z
       
       3 likes, 2 repeats
       
       Next, a more interesting test: editors. For terminal editors I used Alacritty, and I've also added the fast and the slow baselines from the previous tests.Here Neovim and Helix in text mode are the fastest, followed by nano, which has more spread for some reason. Next we have G-T-E and Builder with quite a bit of spread (@hergertme, any idea what's going on here?), then Helix and Neovim with IDE functionality, and finally VSCode.2 years ago VSCode was better; maybe my extension setup changed
       
 (DIR) Post #AYUBMIKgStJa2M6Gx6 by YaLTeR@mastodon.online
       2023-08-07T11:21:04Z
       
       3 likes, 2 repeats
       
       Moar measurements: compositors. Since for this test the key presses are slow and there's no continuous redrawing, this should boil down to the amount of work a compositor does on screen update.Un-vsynced X11 is obviously the fastest; thankfully work to add tearing flips to kernel and Wayland is ongoing.Surprised to see GNOME Shell be a bit slower than raw Mutter, especially in fullscreen, since it doesn't really do much extra there. Extra surprised GNOME X11 is faster; might be noise.
       
 (DIR) Post #AYUBhmjCeONYO7of68 by whynothugo@fosstodon.org
       2023-08-06T21:10:51Z
       
       0 likes, 0 repeats
       
       @YaLTeR latencies of >100ms are way too high. You can very likely feel a delay between the keypress and the computers visual response.
       
 (DIR) Post #AYUBhnXtbuvcvLX972 by psykose@donotsta.re
       2023-08-06T21:17:14.594888Z
       
       1 likes, 0 repeats
       
       @whynothugo @YaLTeR huh, that explains it.. always wondered why vte terminals always felt so muddy to type in, and why foot feels like i'm directly pressing the cpu wires with my fingers. nice benchmarks :D
       
 (DIR) Post #AYUBs45YxVl77wB0t6 by lanodan@queer.hacktivis.me
       2023-08-07T11:28:06.507890Z
       
       0 likes, 0 repeats
       
       @YaLTeR What's anvil? Because wow it's really spreaded out.
       
 (DIR) Post #AYUCKFizI4KdK73fNo by YaLTeR@mastodon.online
       2023-08-07T11:31:43Z
       
       1 likes, 0 repeats
       
       @lanodan it's a tech demo / kitchen sink compositor from Smithay: https://github.com/Smithay/smithay It's by no means fully fledged or optimized, so don't take this as a measure of Smithay's potential performance, but I just wanted to check it out of curiosity.
       
 (DIR) Post #AYVdcfjYDggB7dHzPs by dnkl@linuxrocks.online
       2023-08-08T04:14:14Z
       
       0 likes, 0 repeats
       
       @YaLTeR awesome to see! I've been looking for just about anything resembling latency tests for terminals on Wayland for years.