console.time('timerName'); // 在这里编写你要测试执行时间的 JavaScript 代码 console.timeEnd('timerName');//该片段来自于http://www.codesnippet.cn/detail/060520133130.html
来源: http://www.codesnippet.cn/detail/060520133130.html