HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Tests:
  • Arrays

    x
     
    const arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
    arr.filter(n => n % 2 === 0).map(n => ({ result: n })).forEach(n => console.log("n = ", n));
  • Iterator

     
    const arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
    const iterator = Iterator.from(arr);
    iterator.filter(n => n % 2 === 0).map(n => ({ result: n })).forEach(n => console.log("n = ", n));
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Arrays
    Iterator

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Windows
View result in a separate tab
Test name Executions per second
Arrays 1992.2 Ops/sec
Iterator 2687.2 Ops/sec