Script Preparation code:
Tests:

Historical Performance Data aggregated from 102 community runs

Desktop Results:
Chrome 77 runs
flatmap
4K/s
map+flat
3K/s

Fastest: flatmap (1.2x faster)

View exact numbers
  • flatmap: 3,668 ops/sec
  • map+flat: 3,182 ops/sec
Firefox 19 runs
flatmap
4K/s
map+flat
2K/s

Fastest: flatmap (1.5x faster)

View exact numbers
  • flatmap: 3,576 ops/sec
  • map+flat: 2,465 ops/sec
Safari 6 runs
flatmap
11K/s
map+flat
4K/s

Fastest: flatmap (2.8x faster)

View exact numbers
  • flatmap: 11,415 ops/sec
  • map+flat: 4,122 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
    map+flat

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Chrome 143 on Mac OS X 10.15.7
View result in a separate tab
flatmap
4K/s
map+flat
3K/s
View exact numbers
Test name Executions per second
flatmap 3,849 Ops/sec
map+flat 3,259 Ops/sec