Run details:
Mozilla/5.0 (Linux; Android 11; moto g play (2021) Build/RZAS31.Q2-146-14-2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.98 Mobile Safari/537.36
Chrome Mobile 97
Android
Mobile
3 years ago
Test name Executions per second
big i, small j 47.8 Ops/sec
small i, big j 52.9 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";
        }
    }