Someone looking for a similar profiling tool with Zsh should know that that shell comes with one. I describe a similar process I went through in a blog post I wrote a couple years back.
This is great, thanks for writing and sharing it.
Thanks for the zprof tip, very useful.
I originally was a bit puzzled about the article. I grabbed hyperfine and benchmarked bash -i and zsh -l and both were <2ms on my system.