|Perl: the Markov chain saw|
Re^3: mod_perl vs php performance when accessing Oracle under loadby amasidlover (Acolyte)
|on Aug 27, 2012 at 10:38 UTC||Need Help??|
I'm now struggling to get NYTProf to do what I need it seems to be only writing one request's worth of data when actually I'm expecting it to write 300 files all with 10 or so requests in.
I can't really set MaxClients to 1 as the large response times don't occur without the concurrency.
The timings that are written out show a total of only just over 100ms even including the DB connect - which I assume I'm getting because its only logging my first request. Excluding the connect its about 30ms of time.
What I'm struggling with is how to translate one request into concurrent requests (for the purposes of estimating timing) - particularly when I'm seeing requests that with no DB activity show 1700ms average response time and with DB calls in there show 1800ms average response time. It suggests to me that something outside of my handler is taking the majority of the response time up when concurrency gets 'high'
The detailed results from 'ab' show the following:
So the connect is definitely a big part...
OOOPS!!! Just been back and double checked the PHP results - turns out the PHP version I'd missed the 's' in the URL i.e. http and not https.
They now give similar results! Lets see if I can now do something productive with the other half of my day...