+++ date = "2023-02-25T02:40:46+00:00" lastmod = "2023-02-25T02:40:46+00:00" tags = [ "webdev" ] author = "tdro" +++ Profiling is the nice, cozy, and lazy way to efficiency. There's something neat about avoiding optimization and having the numbers to prove it relative to an initial baseline. In [PHP](https://www.php.net/) there's [Xdebug](https://xdebug.org/) and [KCachegrind](https://kcachegrind.github.io/html/Home.html) and I recently saw [`php-spx`](https://github.com/NoiseByNorthwest/php-spx#readme) in my feeds. A profiler in any language environment with snapshots of performance over time is just --- well nice. The terribad situation is not understanding exactly how something became slow. It might be too late then.