Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
push array to map
108.8M/s
new Map
129K/s

Fastest: push array to map (843.6x faster)

View exact numbers
  • push array to map: 108,798,392 ops/sec
  • new Map: 128,970 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
    new Map
    push array to map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Chrome 140 on Mac OS X 10.15.7
View result in a separate tab
push array to map
128.0M/s
new Map
209K/s
View exact numbers
Test name Executions per second
push array to map 127,990,496 Ops/sec
new Map 208,547 Ops/sec