Using Blackfire to Profile Your Loading Time

By Dave Vasilevsky
Alex Dergachev

Figure out how to make your Drupal backend load faster!

Is your site too slow? The first step to a diagnosis is to analyze front-end performance, which usually reveals under-optimized images, excessive ads, or ineffcient javascript scripts as the main culprits. But often you also will find that the page generation time is over a second, and will wonder where to go from there.

Core Drupal developers already use performance analysis tools like XHProf and Blackfire.io to keep the code efficient, but generally a combination of too many contrib modules, inefficient database queries, or poorly written custom code can easily bloat the page's loading time by a factor of 3 or more. This session will provide you the understanding you need to use these tools, and provide a number of real-world case studies in how to use them to identify common performance bottlenecks, and potential remedies.

We will also discuss ongoing performance monitoring with tools like Blackfire and New Relic.

The examples will be presented from Drupal sites, but the tools are PHP specific, while the lessons apply to most web application programmers. The target audience is PHP developers with experience writing and debugging custom code.

This talk builds upon our Blackfire talk at DrupalCon New Orleans with additional techniques and case studies.

Here are our slides!

Audience Level:
Intermediate (install and configure modules/themes)
Advanced (sysadmin, module developer)

Track:
Development

Version:
Drupal 8
Drupal 7

Prerequisites:
Basic knowledge of PHP is useful

https://www.drupalcampnj.org/program/sessions/using-blackfire-profile-your-loading-time

Drupal is a registered trademark of Dries Buytaert.