
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.
Subject 02 · 6 posts
Measurement: profiling, benchmark method, and optimization that arrives with a number attached.

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.

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.

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.

memory_get_usage(), memory_get_usage(true) and ps disagree about one process. What each counts, which one memory_limit reads, and why a one-megabyte string costs two.

OPcache removes compilation, not execution. The JIT reaches arithmetic-heavy code and little else. Where the remaining time lives.

Microbenchmarks measure exactly what you tell them to, which is rarely what you meant. Method, noise, and the numbers worth reporting.