empty object vs function with empty prototype (v2)

Revision 2 of this benchmark created on


Setup

function EmptyPrototype() {}
EmptyPrototype.prototype = Object.create(null);

Test runner

Ready to run.

Testing in
TestOps/sec
empty prototype
const obj = new EmptyPrototype();
ready
empty object
const obj = Object.create(null);
ready

Revisions

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