Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.1.1
Mobile
2 years ago
Test name Executions per second
Read from data property 10159172.0 Ops/sec
Write to data property 8901105.0 Ops/sec
Read from accessor method 3205292.5 Ops/sec
Write to mutator method 1066400.6 Ops/sec
Read from object literal property 773444.0 Ops/sec
Write to object literal property 586652.9 Ops/sec
Read from object literal property on prototype 802423.4 Ops/sec
Write to object literal property on prototype 816087.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