Profile before optimizing: flame graphs for PHP, Node.js and Python in practice
We once spent two weeks optimizing SQL for an endpoint whose real cost was a logging call. Since then every performance task starts with a profile. Here is how we capture flame graphs in PHP, Node.js and Python, how to read them, and how to measure the win.