Note that powerlevel10k and its config are loaded with zplugin.
After logging in, the current directory is changed to ~/.zplugin/plugins/romkatv---powerlevel10k because it’s more interesting to observe what happens next if you are in a Git repository. You can see that true is instant while exec zsh is almost instant.
The following command is used to measure zsh startup latency:
time ( repeat 100 zsh -is <<< '' )
It repeatedly starts interacive zsh sessions and exits them once the first prompt renders. The command takes 5.115s (51ms per run).
Then ~/.zshrc is edited so that powerlevel10k and its config are sourced directly, without zplugin. Here’s the new ~/.zshrc.