Script Preparation code:
Tests:

Historical Performance Data aggregated from 20 community runs

Desktop Results:
Chrome 20 runs
spread
6.3M/s
forEach push
414K/s

Fastest: spread (15.2x faster)

View exact numbers
  • spread: 6,279,915 ops/sec
  • forEach push: 414,461 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
    spread
    forEach push

    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/137.0.0.0 Safari/537.36
Chrome 137 on Mac OS X 10.15.7
View result in a separate tab
spread
6.4M/s
forEach push
304K/s
View exact numbers
Test name Executions per second
spread 6,408,371 Ops/sec
forEach push 304,354 Ops/sec