From 55175f70b6f5aafa711da0deda903704a0bd5ff8 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 19 Feb 2018 08:41:54 -0800 Subject: [PATCH] Add a little note about performance --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index e9d0fc023..51abdb311 100644 --- a/README.md +++ b/README.md @@ -119,3 +119,29 @@ cursor = "springgreen" ansi = ["black", "maroon", "green", "olive", "navy", "purple", "teal", "silver"] brights = ["grey", "red", "lime", "yellow", "blue", "fuchsia", "aqua", "white"] ``` + +## Performance + +While ultimate speed is not the main goal, performance is important! +Using the GPU to render the terminal contents helps keep CPU usage down +and the output feeling snappy. + +Here's a very basic benchmark: + +``` +$ find /usr > /tmp/usr-files.txt +$ time /tmp/usr-files.txt +``` + +And a comparison between some terminal emulators on my system; they were each +set to 80x24 with 3500 lines of scrollback. `alacritty` has no scrollback. + +| Terminal | Time (seconds) | +|----------|------| +| xterm | 9.863 | +| Gnome Terminal | 2.391 | +| Terminator 1.91 | 2.319 | +| wezterm | 1.193 | +| kitty | 0.899 | +| urxvt | 0.615 | +| alacritty | 0.421 |