前端性能测试

网页加载整个过程的耗时的计算方法:

var t = performance.timing; 
var pageLoadTime = t.loadEventEnd - t.navigationStart;

性能测试工具:

WebPagetest、YSlow、PageSpeed Insights

参考:

http://javascript.ruanyifeng.com/bom/performance.html#toc0   

http://www.ithao123.cn/content-896580.html


你可能感兴趣的:(前端性能测试)