HTML Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
For
1103.2M/s
use lodash
5.9M/s
Spread
2.8M/s
Array.from
2.2M/s

Fastest: For (495.1x faster)

View exact numbers
  • For: 1,103,212,416 ops/sec
  • use lodash: 5,884,128 ops/sec
  • Spread: 2,758,869 ops/sec
  • Array.from: 2,228,290 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
    use lodash
    Array.from
    For

    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/130.0.0.0 Safari/537.36
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
For
171.5M/s
use lodash
9.3M/s
Spread
2.7M/s
Array.from
2.3M/s
View exact numbers
Test name Executions per second
For 171,462,432 Ops/sec
use lodash 9,313,307 Ops/sec
Spread 2,737,632 Ops/sec
Array.from 2,308,457 Ops/sec