HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 21 community runs

Desktop Results:
Chrome 21 runs
Array for..of
112K/s
Set for of
112K/s
Set forEach
98K/s
Array for-loop
37K/s

Fastest: Array for..of (3.0x faster)

View exact numbers
  • Array for..of: 112,463 ops/sec
  • Set for of: 112,441 ops/sec
  • Set forEach: 98,227 ops/sec
  • Array for-loop: 36,994 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 for-loop
    Array for..of
    Set for of
    Set forEach

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129 on Mac OS X 10.15.7
View result in a separate tab
Set for of
145K/s
Array for..of
135K/s
Set forEach
134K/s
Array for-loop
46K/s
View exact numbers
Test name Executions per second
Set for of 145,458 Ops/sec
Array for..of 134,806 Ops/sec
Set forEach 133,667 Ops/sec
Array for-loop 45,595 Ops/sec