| 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) |
| Test name | Executions per second |
|---|---|
| ES6 Class | 12228227.0 Ops/sec |
| Function Prototype | 11722101.0 Ops/sec |
| Object Literal | 6893725.5 Ops/sec |
| ES6 Class (inheritance) | 9140907.0 Ops/sec |
| Function Prototype (inheritance) | 10665526.0 Ops/sec |
| Object Literal (inheritance) | 163704.3 Ops/sec |
| Inline Object Literal | 16899312.0 Ops/sec |
| Inline Object Literal (inheritance) | 179269.6 Ops/sec |
| Spread Object Literal | 940938.7 Ops/sec |
| Spread Object Literal (inheritance) | 556689.8 Ops/sec |
| Modified ES6 Class | 12185928.0 Ops/sec |
| Modified ES6 Class (inheritance) | 9391516.0 Ops/sec |
| Modified Properties ES6 Class | 12364719.0 Ops/sec |
| Modified Properties ES6 Class (inheritance) | 9641920.0 Ops/sec |
| Static Initializer Modified Properties ES6 Class | 12930588.0 Ops/sec |
| Static Initializer Modified Properties ES6 Class (inheritance) | 9332398.0 Ops/sec |