Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Chrome 97
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
big i, small j 241.9 Ops/sec
small i, big j 316.6 Ops/sec
Tests:
  • big i, small j

    AخA
     
    for (let i = 0; i < 1000000; i++) {
        for (let j = 0; j < 10; j++) {
            const hi = "hi";
        }
    }
  • small i, big j

     
    for (let i = 0; i < 10; i++) {
        for (let j = 0; j < 1000000; j++) {
            const hi = "hi";
        }
    }