Javascript 网页的执行时间
我想得到远程网页的执行时间,这是服务器需要生成网页的时间。我使用nodejs。我该怎么做呢?您可以使用console.time()和console.timeEnd()Javascript 网页的执行时间,javascript,node.js,Javascript,Node.js,我想得到远程网页的执行时间,这是服务器需要生成网页的时间。我使用nodejs。我该怎么做呢?您可以使用console.time()和console.timeEnd() 有关更多信息,请使用webgetest库 你可以阅读更多关于它的内容 我想这对你有用。谢谢。有免费服务吗? console.time("exec-time"); /* some code to benchmark */ console.timeEnd("exec-time");
有关更多信息,请使用
webgetest
库
你可以阅读更多关于它的内容
我想这对你有用。谢谢。有免费服务吗?
console.time("exec-time");
/* some code to benchmark */
console.timeEnd("exec-time");