Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
objects 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Browser:
Chrome 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
null
5007848.0 Ops/sec
undefined
1674187.6 Ops/sec
Object.create(null)
150887.2 Ops/sec
void 0
4965373.0 Ops/sec
delete
14620.0 Ops/sec
Tests:
null
var a = 999; for(var i = 0; i < 1000;i++) { const b = {a:null}; }
undefined
var a = 999; for(var i = 0; i < 1000;i++) { const b = {a: undefined}; }
Object.create(null)
var a = 999; for(var i = 0; i < 1000;i++) { const b = {a: Object.create(null)}; }
void 0
var a = 999; for(var i = 0; i < 1000;i++) { const b = {a: void 0}; }
delete
var a = 999; for(var i = 0; i < 1000;i++) { const b = {a: void 0}; delete b.a; }