Test name | Executions per second |
---|---|
let | 205193.8 Ops/sec |
const | 209436.4 Ops/sec |
var | 210152.6 Ops/sec |
let aaa = [1];
let count= 1;
for(let i=1; i<1000; i++){
aaa.push(aaa[i-1]+1);
count*=i/2;
}
const aaa = [1];
let count= 1;
for(let i=1; i<1000; i++){
aaa.push(aaa[i-1]+1);
count*=i/2;
}
var aaa = [1];
let count= 1;
for(let i=1; i<1000; i++){
aaa.push(aaa[i-1]+1);
count*=i/2;
}