Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
object create null db fork
(version: 1)
Comparing performance of:
object create null vs object vs new vs Obj.create no null
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
object create null
var a = []; for (i = 0; i < 10000; i++) a.push( Object.create(null) )
object
var a = []; for (i = 0; i < 10000; i++) a.push( {} );
new
var a = []; for (i = 0; i < 10000; i++) a.push( new Object() );
Obj.create no null
var a = []; const obj = {} for (i = 0; i < 10000; i++) a.push( Object.create(obj) )
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
object create null
object
new
Obj.create no null
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser/OS:
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
object create null
2689.1 Ops/sec
object
4003.4 Ops/sec
new
3237.9 Ops/sec
Obj.create no null
2799.5 Ops/sec
Related benchmarks:
object create null
object create null
delete vs null vs undefined vs void 0 vs Object.create(null)
Array initialization: preallocate vs push
delete vs null vs undefined vs void 0 vs Object.create(null) v2
for-in vs object.keys loop test
Array initialization: preallocate vs push (Objects)
Object.create(null) vs {} unknown property
Object.create(null) vs {} / Nullish coalescing assignment
Comments
Confirm delete:
Do you really want to delete benchmark?