Script Preparation code:
Tests:

Historical Performance Data aggregated from 224 community runs

Desktop Results:
Chrome 169 runs
flatMap
3K/s
reduce with concat
15/s

Fastest: flatMap (237.3x faster)

View exact numbers
  • flatMap: 3,453 ops/sec
  • reduce with concat: 15 ops/sec
Firefox 30 runs
flatMap
4K/s
reduce with concat
1/s

Fastest: flatMap (2466.0x faster)

View exact numbers
  • flatMap: 3,695 ops/sec
  • reduce with concat: 1 ops/sec
Safari 8 runs
flatMap
12K/s
reduce with concat
7/s

Fastest: flatMap (1770.9x faster)

View exact numbers
  • flatMap: 12,049 ops/sec
  • reduce with concat: 7 ops/sec
Other 7 runs
flatMap
1K/s
reduce with concat
8/s

Fastest: flatMap (140.3x faster)

View exact numbers
  • flatMap: 1,111 ops/sec
  • reduce with concat: 8 ops/sec
Mobile Results:
Chrome 10 runs
flatMap
2K/s
reduce with concat
7/s

Fastest: flatMap (307.8x faster)

View exact numbers
  • flatMap: 2,007 ops/sec
  • reduce with concat: 7 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
    reduce with concat
    flatMap

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138 on Mac OS X 10.15.7
View result in a separate tab
flatMap
5K/s
reduce with concat
21/s
View exact numbers
Test name Executions per second
flatMap 4,842 Ops/sec
reduce with concat 21 Ops/sec