Test case name | Result |
---|---|
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 |
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 |