How do I know if my program will perform well in production? What does it mean to “perform well”? How much memory will it need? How much traffic can it serve? Are there any memory leaks or race conditions? What part of processing takes up most of the time? Can I optimise it?

Every developer should be able to answer those questions about their code. But most of us don’t bother. Why? Because analysing performance is hard and as a result it is often skipped in the development process or ignored until things get really slow. Or we may simply not know where to start.

Writing efficient code is a valuable skill that takes time to learn. Being able to analyse performance can not only prove that our code is efficient and safe to run in production, but also teaches us what to avoid next time. It may seem daunting at first, but with the right tools at hand it is a highly rewarding process.

In this talk, we will analyse and optimise the performance of a simple PHP application. By demonstrating how to use some of the excellent open source projects such as xdebug and xhprof, I hope to give you a good idea of where to start with analysing and optimising your PHP code.

Comments

Comments are closed.

Rated 5

Andrew Rota at 15:05 on 3 May 2019

Excellent talk with extremely practical and useful advice on performance profiling and optimization!

Rated 4

TJ Draper at 15:08 on 3 May 2019

Great presentation. Definitely bookmarked some of the tools mentioned.

Rated 5

Steve Grunwell at 15:17 on 3 May 2019

Brilliant talk that shows off *just* enough to be accessible while still showing the audience how powerful proper app profiling can be.

Kat knocked it out of the park with this talk. She had excellent methods of visualizing how to profile PHP apps and included lots of great tools and even an example PHP app to profile. Highly recommend if you get an opportunity to see this talk.

Rated 4

Pat Ramsey at 15:38 on 3 May 2019

Lots of helpful information, links, and things to go research. Like the morning talk on doing static analyses, this subject could be a longer example-based talked where more time is spent on doing analyses of your application. Great knowledge of the subject - the speaker knows her material well and knows how to convey it. Two or three times as soon as I had a question forming in my head, she answered it the very next second.

Rated 5

Marion Sartor at 17:00 on 3 May 2019

Kat introduced optimization in an organized and easy to understandable manner.

Rated 5

Philip at 19:41 on 3 May 2019

like the tools and examples of what not to focus on

Rated 5

Chris Holland at 21:16 on 3 May 2019

Immensely enjoyable talk filled with a great breadth and depth of information. Now there are a ton of tools I must go tinker with posthaste. You just gave me more work Kat!!!! :)

Great talk covering a variety of approaches and techniques for optimization.

Rated 5

Daniel Kadosh at 13:12 on 4 May 2019

Great insights into PHP performance tuning.

Rated 5

Omni Adams at 14:19 on 4 May 2019

Great overview of performance optimization without getting into too many technical details that may not be relevant to the listeners. Loved the discussion about having to actually measure performance so you know where your actual problem is.