Object create (v2)

Revision 2 of this benchmark created on


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.