Run details:
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.142 Safari/537.36
Chrome 72
Linux
Desktop
5 years ago
Test name Executions per second
Read from data property 283579424.0 Ops/sec
Write to data property 118471664.0 Ops/sec
Read from accessor method 193984224.0 Ops/sec
Write to mutator method 109299624.0 Ops/sec
Read from object literal property 168958352.0 Ops/sec
Write to object literal property 110397088.0 Ops/sec
Read from object literal property on prototype 172311840.0 Ops/sec
Write to object literal property on prototype 103983680.0 Ops/sec
Script Preparation code:
Tests:
  • Read from data property

  • Write to data property

  • Read from accessor method

  • Write to mutator method

  • Read from object literal property

  • Write to object literal property

  • Read from object literal property on prototype

  • Write to object literal property on prototype