Run details:
Mozilla/5.0 (Linux; Android 10; POCOPHONE F1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
Read from data property 5609174.0 Ops/sec
Write to data property 5623359.5 Ops/sec
Read from accessor method 2785433.2 Ops/sec
Write to mutator method 2305044.0 Ops/sec
Read from object literal property 2329647.8 Ops/sec
Write to object literal property 1423924.2 Ops/sec
Read from object literal property on prototype 2496402.0 Ops/sec
Write to object literal property on prototype 2202256.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