HTML Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Other 6 runs
lodash flatten
19K/s
flatMap
17K/s

Fastest: lodash flatten (1.1x faster)

View exact numbers
  • lodash flatten: 19,364 ops/sec
  • flatMap: 16,860 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
    flatMap
    lodash flatten

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 OPR/106.0.0.0
Opera 106 on Windows
View result in a separate tab
lodash flatten
49K/s
flatMap
44K/s
View exact numbers
Test name Executions per second
lodash flatten 49,160 Ops/sec
flatMap 43,872 Ops/sec