Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Mobile/15E148 Safari/604.1
Mobile Safari 12
iOS 12.4.5
Mobile
4 years ago
Test name Executions per second
Read from data property 3744466.5 Ops/sec
Write to data property 3738541.2 Ops/sec
Read from accessor method 1843327.9 Ops/sec
Write to mutator method 1345245.2 Ops/sec
Read from object literal property 1714571.2 Ops/sec
Write to object literal property 1405212.0 Ops/sec
Read from object literal property on prototype 2012633.8 Ops/sec
Write to object literal property on prototype 1467207.1 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


;