Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
ES6 Class 16353829.0 Ops/sec
Function Prototype 7643619.0 Ops/sec
Object Literal 1765667.8 Ops/sec
ES6 Class with private properties 16166979.0 Ops/sec
ES6 class with inheritance 15926383.0 Ops/sec
ES6 class with inheritance and private fields declared 9682011.0 Ops/sec
Function prototype with inheritance 3320733.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 Class

  • Function Prototype

  • Object Literal

  • ES6 Class with private properties

  • ES6 class with inheritance

  • ES6 class with inheritance and private fields declared

  • Function prototype with inheritance


;