I have made few performances changes to my web form page- example bringing data from memcache instead of database and removing unnecessary db calls.
I want to measure the page load improvement- pageload time before and after the changes.
I looked at this post: Calculating Page Load Time In JavaScript - using
var loadTime = window.performance.timing.domContentLoadedEventEnd- window.performance.timing.navigationStart;
This didn't help much. It gives me absurd result with few loadTime as high as 10000 and other as low as 300. Also, I do not see much difference when i have removed database call from the code.
What should i do? How can i accurately calculate the performance or page load time of a web page on my local machine.