Re:Scaling PHP Book: I will teach you to scale PHP to millio...
by iaskwhy on Wednesday June 06, 2012 @06:14AM
(#4073063)
What's the best way to identify bottlenecks?
[ Parent
| on HN ]
Re:Scaling PHP Book: I will teach you to scale PHP to millio...
by pwaring on Wednesday June 06, 2012 @06:33AM
(#4073097)
Not sure about 'best', but the way I go about it is to measure the total time required for an application to complete a task, then attempt to measure the individual components (time spent in PHP, data transfer, rending on client side etc.) and keep narrowing it down until you find the exact cause, such as a database query which requires optimisation.