Script Preparation code:
Tests:

Historical Performance Data aggregated from 13 community runs

Desktop Results:
Chrome 13 runs
Reduce (reuse object)
2K/s
Map
1K/s
Reduce (creating temporary objects)
92/s

Fastest: Reduce (reuse object) (25.5x faster)

View exact numbers
  • Reduce (reuse object): 2,351 ops/sec
  • Map: 1,011 ops/sec
  • Reduce (creating temporary objects): 92 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 (reuse object)
    Reduce (creating temporary objects)
    Map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
Chrome 152 on Mac OS X 10.15.7
View result in a separate tab
Reduce (reuse object)
2K/s
Map
902/s
Reduce (creating temporary objects)
92/s
View exact numbers
Test name Executions per second
Reduce (reuse object) 2,351 Ops/sec
Map 902 Ops/sec
Reduce (creating temporary objects) 92 Ops/sec