Test name | Executions per second |
---|---|
normal | 242473328.0 Ops/sec |
evaluated | 32674438.0 Ops/sec |
<!--your preparation HTML code goes here-->
ab = new ArrayBuffer(1000*4);
u32 = new Uint32Array(ab);
fnConstructor = function(localArr, localCount) {
return function foo() {
for (let i = 0; i < localCount; i++) {
localArr[localCount]++;
}
}
};
code2 = `return function foo(argArr, argCount) {
for (let i = 0; i < argCount; i++) {
argArr[argCount]++;
}
}`;
fnWithArgs = new Function(code2)();
fnConstructor(u32, 100);
fnWithArgs(u32, 100);