Run details:
Mozilla/5.0 (Linux; Android 7.0; P008 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.58 Safari/537.36
Chrome 99
Android 7.0
Desktop
2 years ago
Test name Executions per second
Read from data property 3477339.0 Ops/sec
Write to data property 3289791.5 Ops/sec
Read from accessor method 1512817.4 Ops/sec
Write to mutator method 1268301.6 Ops/sec
Read from object literal property 1361157.2 Ops/sec
Write to object literal property 582368.3 Ops/sec
Read from object literal property on prototype 1568784.8 Ops/sec
Write to object literal property on prototype 1334750.6 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