HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 5 runs
Array
14.8M/s
Iterator
2.6M/s

Fastest: Array (5.7x faster)

View exact numbers
  • Array: 14,774,904 ops/sec
  • Iterator: 2,601,342 ops/sec
Firefox 5 runs
Array
24.9M/s
Iterator
930K/s

Fastest: Array (26.7x faster)

View exact numbers
  • Array: 24,861,442 ops/sec
  • Iterator: 930,185 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array
    Iterator

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: yesterday)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36 Edg/151.0.0.0
Chrome 151 on Windows
View result in a separate tab
Array
20.8M/s
Iterator
3.4M/s
View exact numbers
Test name Executions per second
Array 20,802,526 Ops/sec
Iterator 3,402,892 Ops/sec