HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
Custom flatMap
33K/s
Native JS flatMap
19K/s

Fastest: Custom flatMap (1.7x faster)

View exact numbers
  • Custom flatMap: 32,638 ops/sec
  • Native JS flatMap: 19,096 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
    Native JS flatMap
    Custom flatMap
    lodash flatmap

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Custom flatMap
33K/s
lodash flatmap
22K/s
Native JS flatMap
19K/s
View exact numbers
Test name Executions per second
Custom flatMap 33,403 Ops/sec
lodash flatmap 22,234 Ops/sec
Native JS flatMap 19,179 Ops/sec