I am trying to speed up a PHP script running with Apache 2 + PHP in pre-fork mode + APC. It seems that my server takes 100ms to launch the PHP script, which seems way too much.
What are the ways to speed this up, or understand why the server wastes 100ms?
PS: Here is how I came up with this "100ms overhead":
When I test the script from my browser, Chrome's developer tools indicate the following average timing :
Connecting : 30ms Waiting: 170ms Receiving: 50ms
I've then added
echo microtime();to the first and last lines of my script. This shows a difference of 70ms, meaning that the whole script takes 70ms and Apache/PHP add 100ms in "overhead" to that.