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
5 years ago
Test name Executions per second
Read from data property 5194189.5 Ops/sec
Write to data property 5200572.0 Ops/sec
Read from accessor method 2555777.8 Ops/sec
Write to mutator method 2149198.5 Ops/sec
Read from object literal property 2408579.8 Ops/sec
Write to object literal property 1532286.5 Ops/sec
Read from object literal property on prototype 2652957.2 Ops/sec
Write to object literal property on prototype 2222864.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