Test case name | Result |
---|---|
Public ES6 property (get) | |
Public Getter function | |
Public Directly get | |
Public ES6 property (set) | |
Public Setter function | |
Public Directly set | |
Private ES6 property (get) | |
Private Getter function | |
Private ES6 property (set) | |
Private Setter function |
Test name | Executions per second |
---|---|
Public ES6 property (get) | 299593344.0 Ops/sec |
Public Getter function | 282615040.0 Ops/sec |
Public Directly get | 282472256.0 Ops/sec |
Public ES6 property (set) | 430841952.0 Ops/sec |
Public Setter function | 418993696.0 Ops/sec |
Public Directly set | 425608800.0 Ops/sec |
Private ES6 property (get) | 286338688.0 Ops/sec |
Private Getter function | 287016160.0 Ops/sec |
Private ES6 property (set) | 376575200.0 Ops/sec |
Private Setter function | 385027200.0 Ops/sec |