From c8fdae6e43569b32def2f5faa6cdd1d6973d12dd Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 26 Jun 2022 17:57:55 +0100 Subject: Add --late-keyboard-init benchmarks to readme. --- README.md | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dec07a6..33491d5 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ tweak them to look correct on your display. By default, tofi isn't really any faster than its alternatives. However, when configured correctly, it can startup and get on screen within a single frame, -or about 4ms in the ideal case. +or about 2ms in the ideal case. ### Options In roughly descending order, the most important options for performance are: @@ -137,6 +137,12 @@ In roughly descending order, the most important options for performance are: sharpness, but your mileage may vary. This option has no effect if a path to a font file hasn't been passed to `--font`. +* `--late-keyboard-init` - The last avoidable thing that slows down startup is + initialisation of the keyboard. This only takes 1-2ms on my laptop, but up + to 60ms on a Raspberry Pi Zero 2 W. Passing this option will delay keyboard + initialisation until after the first draw to screen, meaning that *keypresses + will be missed* until then, so it's disabled by default. + ### Benchmarks Below are some rough benchmarks of the included themes on different machines. @@ -184,3 +190,45 @@ window has entered the screen. Results are the mean and standard deviation of + +The table below additionally includes `--late-keyboard-init` in the arguments. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Theme
fullscreen dmenu dos
Machine Ryzen 3 3700X
2560px × 1440px
7.9ms ± 1.0ms 2.3ms ± 0.8ms 3.8ms ± 0.8ms
Ryzen 5 5600U (AC)
2880px × 1800px
13.4ms ± 0.8ms 2.6ms ± 0.5ms 5.5ms ± 0.51ms
Ryzen 5 5600U (battery)
2880px × 1800px
21.8ms ± 1.8ms 3.6ms ± 0.7ms 8.1ms ± 0.7ms
Raspberry Pi Zero 2 W
1920px × 1080px
98.3ms ± 5.7ms 44.8ms ± 16.3ms 87.4ms ± 9.9ms
-- cgit v1.2.3