Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.116 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 96
iOS 14.2
Mobile
2 years ago
Test name Executions per second
Read from data property 17139566.0 Ops/sec
Write to data property 16994148.0 Ops/sec
Read from accessor method 8675330.0 Ops/sec
Write to mutator method 7637408.5 Ops/sec
Read from object literal property 8879412.0 Ops/sec
Write to object literal property 7045360.5 Ops/sec
Read from object literal property on prototype 8613373.0 Ops/sec
Write to object literal property on prototype 6218162.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


;