new Map vs push array to mapFastest: push array to map (843.6x faster)
108,798,392 ops/sec
128,970 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| new Map | |
| push array to map |
| Test name | Executions per second |
|---|---|
| ✓ push array to map | 127,990,496 Ops/sec |
| new Map | 208,547 Ops/sec |