Script Preparation code:
Tests:

Historical Performance Data aggregated from 44 community runs

Desktop Results:
Chrome 34 runs
reduce with push
22K/s
loop with push
19K/s
flatMap
5K/s

Fastest: reduce with push (4.1x faster)

View exact numbers
  • reduce with push: 21,836 ops/sec
  • loop with push: 18,724 ops/sec
  • flatMap: 5,379 ops/sec
Firefox 10 runs
loop with push
13K/s
reduce with push
13K/s
flatMap
5K/s

Fastest: loop with push (2.6x faster)

View exact numbers
  • loop with push: 13,473 ops/sec
  • reduce with push: 12,536 ops/sec
  • flatMap: 5,210 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
    reduce with push
    loop with push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Chrome 147 on Mac OS X 10.15.7
View result in a separate tab
loop with push
54K/s
reduce with push
30K/s
flatMap
8K/s
View exact numbers
Test name Executions per second
loop with push 53,808 Ops/sec
reduce with push 29,985 Ops/sec
flatMap 7,536 Ops/sec