sbunse Posted July 23, 2008 Share Posted July 23, 2008 Hi phpfreaks, i'm having some trouble optimizing a cakephp application, or, more concrete, localizing the bottleneck. currently my main problem is a discrepancy between the page generation times measured by ab benchmark and xdebug / wincachegrind. Just for your interest, cakephp has an own timer which measures the render time as around 1.3 seconds, but i ignored this info for now and think the output of ab and xdebug, in this order, should be much more reliable. measured with ab over 5 seconds with one concurrent request i get around 5 pages / second or 200 milliseconds / page, which tears down our server quite fast, especially because there are multiple cake sites hosted which all suffer from this problem. it does not seem to relate to apache or php itself, since for a very simple php page (a single echo statement) ab measures over 1000 reqs / sec (< 1ms / page), a phpinfo page still gets around 250 reqs / sec, so there is definitely no overhead of 150ms inside apache, tcp handshake or the like, i'm quite sure the 200ms/page are spent inside php. but xdebug doesn't see this time, so i have no clue how to identify the bottleneck... any hints would be greatly appreciated! i'm researching this for quite a while now but have no more ideas where to look for this 'lost time'... thanks in advance for any clues you could give me. cheers, stefan Link to comment https://forums.phpfreaks.com/topic/116232-performance-profiling-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.