Create empty object without prototype (v2)

Revision 2 of this benchmark created on


Setup

function Blank() {}
Blank.prototype = Object.create(null)

Test runner

Ready to run.

Testing in
TestOps/sec
Object.create(null)
const obj1 = Object.create(null)
ready
new Blank()
const obj2 = new Blank()
ready
{}
const obj3 = {}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.