Script Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
Array from
19.6M/s
Destructuring
18.9M/s
forEach
5.2M/s

Fastest: Array from (3.8x faster)

View exact numbers
  • Array from: 19,570,708 ops/sec
  • Destructuring: 18,858,352 ops/sec
  • forEach: 5,217,896 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 from
    Destructuring
    forEach

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Chrome 147 on Mac OS X 10.15.7
View result in a separate tab
Destructuring
14.2M/s
Array from
13.9M/s
forEach
3.5M/s
View exact numbers
Test name Executions per second
Destructuring 14,186,830 Ops/sec
Array from 13,864,498 Ops/sec
forEach 3,504,758 Ops/sec