3 parts · Read in order

Where the time goes

What a profiler can and cannot see, how to read what it produces, and where a request's time actually accumulates.

  1. Where you start the clock decides which function looks slow

    One workload, two profiling mechanisms. Instrumentation cost 13% and missed the function that was 55% of the request; sampling cost nothing measurable and found it.

    Part 18 min read

  2. The widest block in a cold flame graph is the autoloader

    The same endpoint profiled twice - 65.8 ms and 8.4 ms. What changed in the picture, and how to tell one slow call from ten thousand fast ones.

    Part 28 min read

  3. The classmap removes 508 syscalls and saves nothing

    Composer's optimized autoloader took a cold request from 92.079 ms to 92.625. What the cold start is actually made of, and the measurement mistake that said otherwise.

    Part 38 min read

Arrow keys to move, Enter to open.