javascript 性能检测

console.profile()

//要统计的代码

// ...

console.profileEnd();

原文地址:https://www.cnblogs.com/luckstart/p/5207700.html