Map get vs Obj get vs Map set vs Obj setFastest: Map get (7.9x faster)
531,689 ops/sec
116,657 ops/sec
95,026 ops/sec
67,222 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Map get | |
| Obj get | |
| Map set | |
| Obj set |
| Test name | Executions per second |
|---|---|
| ✓ Map get | 76,536 Ops/sec |
| Obj get | 15,131 Ops/sec |
| Obj set | 12,513 Ops/sec |
| Map set | 11,819 Ops/sec |