Object.create(null) vs object literalFastest: object literal (9.6x faster)
10,005 ops/sec
1,038 ops/sec
Fastest: Object.create(null) (1.3x faster)
5,108 ops/sec
4,072 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Object.create(null) | |
| object literal |
| Test name | Executions per second |
|---|---|
| ✓ object literal | 18,808 Ops/sec |
| Object.create(null) | 3,251 Ops/sec |