Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
void 0
2.9M/s
null
2.9M/s
undefined
13K/s
Object.create(null)
12K/s

Fastest: void 0 (246.3x faster)

View exact numbers
  • void 0: 2,907,238 ops/sec
  • null: 2,887,530 ops/sec
  • undefined: 13,075 ops/sec
  • Object.create(null): 11,806 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
    null
    undefined
    Object.create(null)
    void 0

    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/133.0.0.0 Safari/537.36
Chrome 133 on Windows
View result in a separate tab
void 0
3.5M/s
null
3.4M/s
undefined
1.5M/s
Object.create(null)
71K/s
View exact numbers
Test name Executions per second
void 0 3,472,582 Ops/sec
null 3,435,816 Ops/sec
undefined 1,468,492 Ops/sec
Object.create(null) 70,981 Ops/sec