HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Custom Reduce on a Map
104/s
Lodash Reduce on a Map
19/s
Vanilla JS Reduce on a Map
5/s

Fastest: Custom Reduce on a Map (20.9x faster)

View exact numbers
  • Custom Reduce on a Map: 104 ops/sec
  • Lodash Reduce on a Map: 19 ops/sec
  • Vanilla JS Reduce on a Map: 5 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
    Vanilla JS Reduce on a Map
    Lodash Reduce on a Map
    Custom Reduce on a Map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Custom Reduce on a Map
105/s
Lodash Reduce on a Map
10/s
Vanilla JS Reduce on a Map
5/s
View exact numbers
Test name Executions per second
Custom Reduce on a Map 105 Ops/sec
Lodash Reduce on a Map 10 Ops/sec
Vanilla JS Reduce on a Map 5 Ops/sec