📅  最后修改于: 2022-03-11 15:01:51.256000             🧑  作者: Mango
const { JSDOM } = require("jsdom");
const { window } = new JSDOM();
var start = window.performance.now();
// task starts
for (var i = 0; i < 100000000;i++);
// task ends
var end = window.performance.now();
console.log(`Execution time: ${end - start} ms`);