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) |
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 |