HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
lodash.flatMap
19.4M/s
Vanilla js flatmap
8.4M/s
lodash.flatMapDeep
7.7M/s

Fastest: lodash.flatMap (2.5x faster)

View exact numbers
  • lodash.flatMap: 19,365,812 ops/sec
  • Vanilla js flatmap: 8,395,912 ops/sec
  • lodash.flatMapDeep: 7,710,417 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
    lodash.flatMap
    Vanilla js flatmap
    lodash.flatMapDeep

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Chrome 148 on Mac OS X 10.15.7
View result in a separate tab
lodash.flatMap
27.8M/s
lodash.flatMapDeep
12.1M/s
Vanilla js flatmap
11.9M/s
View exact numbers
Test name Executions per second
lodash.flatMap 27,829,982 Ops/sec
lodash.flatMapDeep 12,149,942 Ops/sec
Vanilla js flatmap 11,919,844 Ops/sec