Script Preparation code:
Tests:
  • 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)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • 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)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 16 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
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