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)

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)

    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 8440521.0 Ops/sec
Function Prototype 3838576.5 Ops/sec
Object Literal 3014909.2 Ops/sec
ES6 Class (inheritance) 8628179.0 Ops/sec
Function Prototype (inheritance) 2553583.0 Ops/sec
Object Literal (inheritance) 223234.7 Ops/sec
Inline Object Literal 3362331.5 Ops/sec
Inline Object Literal (inheritance) 226694.4 Ops/sec
Spread Object Literal 1991431.1 Ops/sec
Spread Object Literal (inheritance) 344053.5 Ops/sec
Modified ES6 Class 4185084.0 Ops/sec
Modified ES6 Class (inheritance) 4110021.5 Ops/sec
Modified Properties ES6 Class 4211643.5 Ops/sec
Modified Properties ES6 Class (inheritance) 4065578.5 Ops/sec