Test name | Executions per second |
---|---|
inline | 99760.0 Ops/sec |
cached | 98351.3 Ops/sec |
var x = (new Array(100)).fill(0);
function f1() {
return x.map(function(x) {
return x + 1;
});
}
function f2() {
return x.map(g);
}
function g(x) {
return x + 1;
}
f1();
f2();