Test case name | Result |
---|---|
Object.defineProperty | |
Object.assign (immutable) | |
Object.assign (mutable) | |
Object.defineProperty on Proxy | |
Property direct on Proxy | |
Direct Object Property | |
Object.defineProperty with getter and setter | |
Object.defineProperties (plural) with getter and setter | |
Object.defineProperty on Proxy with getter and setter | |
Object.assign on Proxy (mutable) |
Test name | Executions per second |
---|---|
Object.defineProperty | 62877.6 Ops/sec |
Object.assign (immutable) | 1655.7 Ops/sec |
Object.assign (mutable) | 56571.7 Ops/sec |
Object.defineProperty on Proxy | 27187.0 Ops/sec |
Property direct on Proxy | 40145.4 Ops/sec |
Direct Object Property | 193082.7 Ops/sec |
Object.defineProperty with getter and setter | 53566.6 Ops/sec |
Object.defineProperties (plural) with getter and setter | 12582.2 Ops/sec |
Object.defineProperty on Proxy with getter and setter | 14633.0 Ops/sec |
Object.assign on Proxy (mutable) | 30006.9 Ops/sec |