Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Chrome 58
Linux
Other
7 years ago
Test name Executions per second
Compound let 18.7 Ops/sec
Let 88.2 Ops/sec
Compound var 311.5 Ops/sec
Tests:
  • Compound let

    AخA
     
    for (let a = 0; a < 10000000; a++) {
      a += 1;
    }
  • Let

     
    for (let a = 0; a < 10000000; a++) {
      a = a + 1;
    }
  • Compound var

     
    for (var a = 0; a < 10000000; a++) {
      a += 1;
    }