Object create

Benchmark created on


Setup

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

for (let i = 0; i < 1000;i++) '__proto__' in new Empty()

Test runner

Ready to run.

Testing in
TestOps/sec
function
const Empty = function() {}; 
Empty.prototype = Object.create(null); 

for (let i = 0; i < 1000;i++) '__proto__' in new Empty()
ready
Object
for (let i = 0; i < 1000;i++) '__proto__' in Object.create(null)
ready

Revisions

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