Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/97.0.4692.84 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 97
iOS 15.2
Mobile
2 years ago
Test name Executions per second
Read from data property 25150578.0 Ops/sec
Write to data property 25230170.0 Ops/sec
Read from accessor method 14120444.0 Ops/sec
Write to mutator method 11553608.0 Ops/sec
Read from object literal property 14127006.0 Ops/sec
Write to object literal property 10771504.0 Ops/sec
Read from object literal property on prototype 12397515.0 Ops/sec
Write to object literal property on prototype 10852159.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