Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Object.create(null) vs {}
(version: 1)
Comparing performance of:
Object.create(null) vs {}
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
Object.create(null)
for (var i=0; i<10000; i++) { const x = Object.create(null); }
{}
for (var i=0; i<10000; i++) { const x = {}; }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Object.create(null)
{}
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0
Browser/OS:
Chrome 144 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Object.create(null)
13128.4 Ops/sec
{}
421563.4 Ops/sec
Related benchmarks:
object create null
testing loops
testing loops
Object.hasOwnProperty vs Object in vs Object[]
null vs delete
undefined vs void 0
Object.create(null) vs {} unknown property
Object.create(null) vs {} / Nullish coalescing assignment
DefineProperties vs assignment
Comments
Confirm delete:
Do you really want to delete benchmark?