Take the 2-minute tour ×  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.  share|improve this question Since the page is dynamic and
user-specific, solutions such as Varnish do not seem relevant to
me. –  Eric Nov 19 '12 at 13:58 How far is your browser from the
server? The speed of light may well be the limiting factor here.
–  David Schwartz Nov 19 '12 at 19:06 How long does it take to
ping your serv