Hacker News new | ask | show | jobs
by idoubtit 8 days ago
The problem with this article is that the benchmark method they use is flawed. The documentation of zshbench explains why: https://github.com/romkatv/zsh-bench

Even with a low grade laptop, my zsh config grants me a sub 5ms prompt and a sub 1ms input lag, and that's far more important than the exit time.

     ./zsh-bench
    ==> benchmarking login shell of user XYZ ...
    creates_tty=0
    has_compsys=1
    has_syntax_highlighting=0
    has_autosuggestions=0
    has_git_prompt=1
    first_prompt_lag_ms=54.942
    first_command_lag_ms=57.069
    command_lag_ms=4.275
    input_lag_ms=0.669
    exit_time_ms=26.522

     hyperfine --warmup 3 'zsh -i -c exit'
    Benchmark 1: zsh -i -c exit
      Time (mean ± σ):      26.5 ms ±   0.5 ms
      Range (min … max):    25.5 ms …  27.6 ms