Test name | Executions per second |
---|---|
let | 113091.8 Ops/sec |
const | 113052.6 Ops/sec |
var | 113691.9 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;
}