Test name | Executions per second |
---|---|
let | 203214.5 Ops/sec |
const | 206062.7 Ops/sec |
var | 205796.8 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;
}