Test name | Executions per second |
---|---|
hi | 2.9 Ops/sec |
hihi | 2.8 Ops/sec |
<!--your preparation HTML code goes here-->
/*your preparation JavaScript code goes here
To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/
async function globalMeasureThatScriptPrepareFunction() {
// This function is optional, feel free to remove it.
// await someThing();
}
console.time("start");
let arrry = [];
for (let i = 0; i < 100000000; i++) {
arrry.push(i);
}
console.timeEnd("start");
console.time("start");
const arrry = [];
for (let i = 0; i < 100000000; i++) {
arrry.push(i);
}
console.timeEnd("start");