PHP performance
Guilty Of PHP articles about PHP performance
3 articles
-
Understand PHP execution and behavior
Measure Current and Peak PHP Memory Usage at Script Checkpoints
Print byte readings before and after an array is created and unset, then add periodic checkpoints to a loop without mistaking a persistent peak for current usage.
-
Understand PHP execution and behavior
What Happens to PHP Memory During One Request?
Follow an array from creation through assignment, a write, and unset(), then see how reference counting, cycle collection, and memory_limit fit into the script’s lifecycle.
-
Measure PHP Attribute Lookup Costs Before Caching Reflection Results
Time the code path with and without an attribute, isolate repeated lookups from object instantiation, and cache retrieved metadata only if the measured workload benefits.
