Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
{} vs {null}
(version: 2)
Comparing performance of:
Creation: Object vs Creation: Object w null p
Created:
one year ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Tests:
Creation: Object
const d1 = {}; for (let i = 0; i < 10000; i++) { d1[i] = i; }
Creation: Object w null p
const d2 = Object.create(null); for (let i = 0; i < 10000; i++) { d2[i] = i; }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Creation: Object
Creation: Object w null p
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Browser/OS:
Firefox 136 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Creation: Object
48867.4 Ops/sec
Creation: Object w null p
52193.9 Ops/sec
Related benchmarks:
object create null
object create null
delete vs null vs undefined vs void 0 vs Object.create(null)
delete vs null vs undefined vs void 0 vs Object.create(null) v2
objects delete vs null vs undefined vs void 0 vs Object.create(null)
Object.create(null) vs {} unknown property
Object.create(null) vs {} / Nullish coalescing assignment
{} vs Map with set ONLY
{} vs Map with set and DELETE
Comments
Confirm delete:
Do you really want to delete benchmark?