Run details:
Mozilla/5.0 (Linux; Android 9; Redmi Note 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Mobile Safari/537.36
Chrome Mobile 78
Android
Mobile
4 years ago
Test name Executions per second
Read from data property 2949354.8 Ops/sec
Write to data property 5060776.0 Ops/sec
Read from accessor method 2546193.5 Ops/sec
Write to mutator method 2225581.5 Ops/sec
Read from object literal property 2424412.5 Ops/sec
Write to object literal property 1535362.0 Ops/sec
Read from object literal property on prototype 2626348.2 Ops/sec
Write to object literal property on prototype 2061645.5 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


;