Test name | Executions per second |
---|---|
let | 208943.9 Ops/sec |
const | 208193.2 Ops/sec |
var | 207414.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;
}