Run details:
Mozilla/5.0 (Linux; Android 10; Nokia 3.1 Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
Read from data property 1525131.1 Ops/sec
Write to data property 1521531.4 Ops/sec
Read from accessor method 749341.6 Ops/sec
Write to mutator method 679517.4 Ops/sec
Read from object literal property 696370.5 Ops/sec
Write to object literal property 400214.5 Ops/sec
Read from object literal property on prototype 768870.2 Ops/sec
Write to object literal property on prototype 688465.9 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