Profile Before You Optimise: A Five-Minute Habit
Most “slow” code is not slow where you think it is. Measure first, fix second — here is the five-minute loop, from flame graphs to the number you paste into a pull request.
khallaf
Tip
Every published article tagged “performance”.
3 articles
Most “slow” code is not slow where you think it is. Measure first, fix second — here is the five-minute loop, from flame graphs to the number you paste into a pull request.
What LCP, INP and CLS actually measure, what breaks each score, and the highest-leverage fixes in the order that pays off fastest for real users.
Nobody complains about a 40 ms query. Everybody complains about four hundred of them per page. Read EXPLAIN column by column, and find the N+1 before your users do.