Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
delete vs null vs undefined vs void 0 vs Object.create(null)
delete vs null vs undefined vs void 0 vs Object.create(null)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Browser:
Chrome 126
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
null
3.8M/s
void 0
3.8M/s
undefined
13K/s
Object.create(null)
12K/s
View exact numbers
Test name
Executions per second
✓
null
3,765,311 Ops/sec
void 0
3,758,426 Ops/sec
undefined
13,075 Ops/sec
Object.create(null)
11,806 Ops/sec
Tests:
null
var a = 999; for(var i = 0; i < 1000;i++) { a = null; }
undefined
var a = 999; for(var i = 0; i < 1000;i++) { a = undefined; }
Object.create(null)
var a = 999; for(var i = 0; i < 1000;i++) { a = Object.create(null); }
void 0
var a = 999; for(var i = 0; i < 1000;i++) { a = void 0; }