A slow WooCommerce shop costs money, and guessing at the cause costs more. Performance profiling means measuring where the code spends its time while it runs, so that you fix the real bottleneck and not the one you suspected.
This talk explains what profiling is, which tools do it, what a profile shows and why it is worth making a habit of. One WooCommerce example, finding a product by its SKU, shows what the numbers look like. It ends on the point of the whole talk: any developer can do this, junior, medior or senior.
What the talk covers
- What performance profiling is: measuring code at run time to find and fix bottlenecks.
- The tools: Blackfire, New Relic and the Xdebug profiler.
- Why do it: to stop firefighting and guessing, to use the server well, to be ready to grow, to prevent downtime, to save money, and to learn.
- What a profile shows: execution time, resource use, function calls, hot spots in the code, I/O, memory leaks and database queries.
- An example on WooCommerce 8.1.1:
wc_get_product_id_by_sku()and the query behind it, measured.