{"repo":"romkatv/zsh-bench","free":true,"listed":false,"github":"https://github.com/romkatv/zsh-bench","clone":"git clone https://github.com/romkatv/zsh-bench.git","description":"Benchmark for interactive Zsh","language":"Shell","stars":1028,"topics":["zsh","performance"],"license":"MIT","category":"cli-tools","readme_excerpt":"zsh-bench Benchmark for interactive zsh. - Summary - Install - Usage - How it works - What it measures - How fast is fast - Benchmark results - Basics - Prompt - Premade configs - Do it yourself - Cutting corners - Powerlevel10k - Instant prompt - Plugin managers - Deferred initialization - How not to benchmark - Full benchmark data - Conclusions - Responses - Debugging and validation - License - FAQ Summary - zsh-bench measures user-visible latency of interactive zsh: input lag , command lag , etc. You can use it to benchmark your own shell. - human-bench measures human perception of latency when using interactive zsh. You can use it to check how it feels to use zsh with specific latencies or to test whether you can tell a difference between 5ms and 0ms lag. - I've used human-bench to conduct a blind study on myself to find the maximum values of latencies that are indistinguishable from zero. For example, command lag below 10ms feels just like 0ms but anything above this value starts feeling sluggish. - I've used these threshold values to normalize benchmark results to see what is fast and what is slow. - Armed with this set of tools I've optimized two of my zsh projects: powerlevel10k and zsh4humans. They used to be fairly fast but now they are literally indistinguishable from instantaneous as far as human perception goes. - I've benchmarked many zsh techniques, plugins, frameworks and plugin managers and have shared my observations in this document together with a brief co","default_branch":null,"files":null,"tree":[],"storefront":"/r/romkatv","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/romkatv/zsh-bench/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}