Performance optimisation: how do I go about it?

Kat Zien (08.Feb.2019 at 10:15, 1 hr )
Talk at SunshinePHP 2019 (English - US)

Rating: 5 of 5

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, xhprof or php-meminfo, I hope to give you a good idea of where to start with analysing and optimising your PHP code.

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

Want to comment on this talk? Log in or create a new account or comment anonymously

Write a comment

 
Please note: you are not logged in and will be posting anonymously!
= seven minus six

Comments

Rating: 5 of 5

08.Feb.2019 at 11:09 by Sonny Savage (44 comments) via Web2 LIVE

Clear presentation with solid examples

Rating: 5 of 5

08.Feb.2019 at 11:24 by Robb Erickson (3 comments) via Web2 LIVE

Great session with actionable steps for implementing performance testing, delivered in a conscise presentation.

Rating: 5 of 5

08.Feb.2019 at 11:28 by Glenn Kimble (5 comments) via Web2 LIVE

Great talk with lots of good resources and examples to take away! I learned a lot.

Rating: 5 of 5

08.Feb.2019 at 11:32 by James LaChance (13 comments) via Web2 LIVE

Fantastic overview of how to get started with performance optimization the right way! Seeing that this talk was tagged as a beginner talk had me a bit hesitant as I've already been comfortable using xdebug's profiling and blackfire, but I picked up quite a few new tricks!

Rating: 5 of 5

08.Feb.2019 at 12:28 by Derek Honeycutt (11 comments) via Web2 LIVE

Great presentation

Rating: 5 of 5

08.Feb.2019 at 13:33 by Chris Gearhart (9 comments) via Web2 LIVE

Nice presentation, great topic to cover.

Rating: 5 of 5

08.Feb.2019 at 14:00 by Nate Bockoven (5 comments) via Web2 LIVE

Thank you for sharing example tools I may use to help pinpoint performance issues. I feel I'm better equipped to get in the habit of writing efficient code.

Rating: 5 of 5

08.Feb.2019 at 14:47 by Andrew Cassell (16 comments) via Web2 LIVE

Great overview of best practices for doing profiling locally (without using a SaaS)

Rating: 5 of 5

09.Feb.2019 at 08:23 by Christopher Wilson (11 comments) via Web2 LIVE

There were a lot of good examples and suggestions. It was also helpful to be pointed at a few github projects to get started.

Rating: 5 of 5

10.Feb.2019 at 16:25 by Brian Johnson (22 comments) via Web2 LIVE

Easy to follow presentation, concrete understandable examples. This was a great talk.

Rating: 5 of 5

10.Feb.2019 at 20:07 by Peter Fisher (50 comments) via Web2 LIVE

A polished talk. I was especially grateful for the tooling explanations. My only recommendation is to have more details on flame graphs compared to the other metrics but that is a minor thing.

Rating: 5 of 5

11.Feb.2019 at 09:18 by Carla Gouveia (3 comments) via Web2 LIVE

Awesome talk, good examples.

Rating: 5 of 5

11.Feb.2019 at 13:19 by Kimi Santoro (1 comments) via Web2 LIVE

Sound talking points, relevant metrics and benchmarks to support the main objectives of the presentation and solid examples using the tools mentioned. The only suggestion I would make would be to spice up the PowerPoint a bit and give it some design quality and flare. I know its PHP but visuals always make presentations more interesting.

© Joind.in 2019