Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
1st 4978.7 Ops/sec
2nd 9942.3 Ops/sec
Tests:
  • 1st

    AخA
     
    let sum = 0;
    const length = 100000;
    for(i=0; i<length; i++){
        sum += i * 6;
    }
  • 2nd

     
    let sum = 0;
    const length = 50000;
    for(i=0; i<length; i++){
        sum += i * 6;
    }