Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
class without declared fields 26711.9 Ops/sec
class with declared fields 20195.2 Ops/sec
function constructor 26803.2 Ops/sec
object literal 1317191.1 Ops/sec
object literal & sum.call 1316288.8 Ops/sec
object literal & sum.bind 126129.7 Ops/sec
Object.create 10192.9 Ops/sec
Object.setPrototypeOf 1918.5 Ops/sec
Script Preparation code:
Tests:
  • class without declared fields

  • class with declared fields

  • function constructor

  • object literal

  • object literal & sum.call

  • object literal & sum.bind

  • Object.create

  • Object.setPrototypeOf