Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Linux
Desktop
one month ago
Test name Executions per second
Object.create 888496448.0 Ops/sec
new 983268288.0 Ops/sec
Script Preparation code:
x
 
//var opt = {}
function Foo() {}
var Bar = {};
Tests:
  • Object.create

     
    let bar = Object.create(Bar);
  • new

     
    let foo = new Foo();