4 ms·
I've also had a good experience using the 'perf'[^1] tools for when I don't want to install 'hyperfine'. Shameless plug for a small blog post about it as I don'
by usrme 2y ago
I've also had a good experience using the 'perf'[^1] tools for when I don't want to install 'hyperfine'. Shameless plug for a small blog post about it as I don't think it is that well known: https://usrme.xyz/tils/perf-is-more-robust-for-repeated-timings-than-time/ https://usrme.xyz/tils/perf-is-more-robust-for-repeated-timi....
---
[^1]: https://www.mankier.com/1/perf https://www.mankier.com/1/perf
- vdm 2y agoI too have scripted time(1) in a loop badly. perf stat is more likely to be already installed than hyperfine. Thank you for sharing!
- CathalMullan 2y agoThere's also 'poop', which is a nice middle-ground between 'hyperfine' and 'perf'. https://github.com/andrewrk/poop https://github.com/andrewrk/poop
- llimllib 2y agoworth mentioning that it's linux-only