Script Preparation code:
AخA
 
var iterations = 10000;
Tests:
  • for

     
    for (i = 0; i < iterations; i++) {
      console.log(i);
    }
  • fill and map

     
    Array(iterations).fill('').map((value, index) => console.log(index));
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    for
    fill and map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133 on Linux
View result in a separate tab
Test name Executions per second
for 17.8 Ops/sec
fill and map 17.7 Ops/sec