I downloaded the site testing and noticed a rather big difference between the time information received from the web server (in this case, the tornado web server ) and Chrome Developer Tools. The web server provides a service that runs as a process (in fact, a couple of processes controlled by a supervisor) for nginx. There is also a web interface for interacting with this service. This tornado web server receives requests quite quickly (on average 30 ms). However, Chrome Developer Tools shows a much slower response time (about 240 ms).
Each request retrieves some information and requires a request for additional resources (mainly images). I thought this was the main reason for such a big difference, but I tried to use curl and time_starttransfer measures of 172ms.
On the other hand, using this registration directive for nginx:
log_format timed_combined '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent" ' '$request_time $upstream_response_time $pipe';
I was able to verify that request_time and upstream_response_time are actually quite small (45 ms).
What could be the reason for this discrepancy in response time?
UPDATE
This is a screenshot from Firebug:

I donβt think I can understand latency with this limited information.
UPDATE 2
I was able to get the best curled information. I'm not sure how accurate this is:
time_namelookup: 0.000 time_connect: 0.062 time_appconnect: 0.000 time_pretransfer: 0.062 time_redirect: 0.000 time_starttransfer: 0.172 ---------- time_total: 0.240
From what I see, time_starttransfer - time_pretransfer = content_generation , so 0.172 - 0.062 = 0.110s. However, looking at the logs, the web server reports 0.044s and request_time from nginx agrees (0.045s). Moreover, time_connect in the output of curl, which I suppose should be a delay, is not so large (0,062s).
Interestingly, time_starttransfer - time_connect*2 = 0.048 similar to the time registered by nginx or tornado (0.048 against 0.044). But this calculation does not have to be correct. Does anyone know what is the right way to justify the difference between response time in developer chrome tools / curl vs web server / nginx?