📅  最后修改于: 2022-03-11 15:04:04.894000             🧑  作者: 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`);