I make JSON API and when measuring performance there's this strange thing. When doing XDEBUG_PROFILE, request processing takes about 100 ms. But browser network panel says it's always 1 - 1.5 seconds. Why so big difference and how do I know what causes it?
System is GNU/Linux, Apache 2.2.17
Profiling code will give you the time to compile/run code.
Browser network metrics, will give you the DNS + TCP + HTTP ( + profiled code) steps time.