Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
{} vs {null}
(version: 3)
Comparing performance of:
Creation: Object vs Creation: Object w null proto
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 i1 = 0; i1 < 10000; i1++) { d1[i1] = i1; }
Creation: Object w null proto
const d2 = Object.create(null); for (let i2 = 0; i2 < 10000; i2++) { d2[i2] = i2; }
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 proto
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
5 days ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0
Browser/OS:
Firefox 151 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Creation: Object
39123.8 Ops/sec
Creation: Object w null proto
35768.0 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 FIRST TIME set ONLY
{} vs Map with set and DELETE
Comments
Confirm delete:
Do you really want to delete benchmark?