HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 60 community runs

Desktop Results:
Chrome 45 runs
lodash.flatMap
7.0M/s
Vanilla js flatmap
6.2M/s

Fastest: lodash.flatMap (1.1x faster)

View exact numbers
  • lodash.flatMap: 6,975,366 ops/sec
  • Vanilla js flatmap: 6,178,456 ops/sec
Firefox 9 runs
lodash.flatMap
7.7M/s
Vanilla js flatmap
6.9M/s

Fastest: lodash.flatMap (1.1x faster)

View exact numbers
  • lodash.flatMap: 7,735,586 ops/sec
  • Vanilla js flatmap: 6,940,899 ops/sec
Other 6 runs
lodash.flatMap
5.8M/s
Vanilla js flatmap
1.4M/s

Fastest: lodash.flatMap (4.2x faster)

View exact numbers
  • lodash.flatMap: 5,798,367 ops/sec
  • Vanilla js flatmap: 1,375,844 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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142 on Windows
View result in a separate tab
lodash.flatMap
20.1M/s
Vanilla js flatmap
8.5M/s
View exact numbers
Test name Executions per second
lodash.flatMap 20,083,280 Ops/sec
Vanilla js flatmap 8,469,899 Ops/sec