Script Preparation code:
Tests:
  • ES6 Class

  • Function Prototype

  • Object Literal

  • ES6 Class (inheritance)

  • Function Prototype (inheritance)

  • Object Literal (inheritance)

  • Inline Object Literal

  • Inline Object Literal (inheritance)

  • Spread Object Literal

  • Spread Object Literal (inheritance)

  • Modified ES6 Class

  • Modified ES6 Class (inheritance)

  • Modified Properties ES6 Class

  • Modified Properties ES6 Class (inheritance)

  • Static Initializer Modified Properties ES6 Class

  • Static Initializer Modified Properties ES6 Class (inheritance)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    ES6 Class
    Function Prototype
    Object Literal
    ES6 Class (inheritance)
    Function Prototype (inheritance)
    Object Literal (inheritance)
    Inline Object Literal
    Inline Object Literal (inheritance)
    Spread Object Literal
    Spread Object Literal (inheritance)
    Modified ES6 Class
    Modified ES6 Class (inheritance)
    Modified Properties ES6 Class
    Modified Properties ES6 Class (inheritance)
    Static Initializer Modified Properties ES6 Class
    Static Initializer Modified Properties ES6 Class (inheritance)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
ES6 Class 8884525.0 Ops/sec
Function Prototype 4186147.5 Ops/sec
Object Literal 3130375.0 Ops/sec
ES6 Class (inheritance) 8892477.0 Ops/sec
Function Prototype (inheritance) 2568388.0 Ops/sec
Object Literal (inheritance) 220133.2 Ops/sec
Inline Object Literal 3410687.5 Ops/sec
Inline Object Literal (inheritance) 228122.8 Ops/sec
Spread Object Literal 1989906.2 Ops/sec
Spread Object Literal (inheritance) 344369.1 Ops/sec
Modified ES6 Class 4223693.5 Ops/sec
Modified ES6 Class (inheritance) 4108573.0 Ops/sec
Modified Properties ES6 Class 4228703.0 Ops/sec
Modified Properties ES6 Class (inheritance) 4125957.8 Ops/sec
Static Initializer Modified Properties ES6 Class 8957126.0 Ops/sec
Static Initializer Modified Properties ES6 Class (inheritance) 8777591.0 Ops/sec


;