aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-04 11:06:13 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-04 11:06:18 +0300
commitadfdf198b7576a9d445c7afceecd2591c66d40eb (patch)
tree762561725a4d5f27bbf49c3bc50b1d30fadcf4fb
parentf8314e59591788ad19b10abff655897eddaac414 (diff)
update loading time benchmark
-rw-r--r--README.md16
1 files changed, 6 insertions, 10 deletions
diff --git a/README.md b/README.md
index 15adbc61..e42d551a 100644
--- a/README.md
+++ b/README.md
@@ -262,21 +262,17 @@ prompt latency when using Powerlevel10k, please
### Is Powerlevel10k fast to load?
-The amount of time it takes for Powerlevel10k to render the first prompt is higher than for the
-subsequent prompts but it's still fairly fast.
+Yes, provided that you are using ZSH >= 5.4.
-Time to first prompt can be measured with the following benchmark:
+Loading time, or time to first prompt, can be measured with the following benchmark:
```zsh
-time (repeat 100 zsh -dfis <<< 'source ~/powerlevel10k/powerlevel10k.zsh-theme')
+time (repeat 1000 zsh -dfis <<< 'source ~/powerlevel10k/powerlevel10k.zsh-theme')
```
-On the same machine as in the [prompt benchmark](#is-it-really-fast) this results in 36.9 ms per
-invocation when executed in a small git repository (I used the `powerlevel10k` repo itself). For
-comparison, the same benchmark gives 171 ms for powerlevel9k/master and 505 ms for
-powerlevel9k/next.
-
-*Note: Powerlevel10k is significantly faster to load with zsh version 5.4 and above.*
+Running this command with `~/powerlevel10k` as the current directory on the same machine as in the
+[prompt benchmark](#is-it-really-fast) takes 29 seconds (29 ms per invocation). This is about 6
+times faster than powerlevel9k/master and 17 times faster than powerlevel9k/next.
### Does Powerlevel10k always render exactly the same prompt as Powerlevel9k given the same config?