If you are not looking for a programmatic solution, load up your friend and mine, Firefox with Firebug installed. When you bring up Firebug, select the "Net" tab and you will see the response times of all requests on the page. Hover over a time and you get a popup breakdown of where the time went -- DNS Lookup, Wait Time, etc.
There's no builtin function or value to get the response time.
But you can easily get the value yourself.
EDIT
Since V8 also supports the new ES5
Date.now()
, using that instead ofnew Date()
would be a little bit cleaner.If you are not looking for a programmatic solution, load up your friend and mine, Firefox with Firebug installed. When you bring up Firebug, select the "Net" tab and you will see the response times of all requests on the page. Hover over a time and you get a popup breakdown of where the time went -- DNS Lookup, Wait Time, etc.