Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.5.1
Mobile
5 months ago
Test name Executions per second
Read from data property 27065912.0 Ops/sec
Write to data property 25906164.0 Ops/sec
Read from accessor method 14113992.0 Ops/sec
Write to mutator method 12846267.0 Ops/sec
Read from object literal property 15469110.0 Ops/sec
Write to object literal property 12614299.0 Ops/sec
Read from object literal property on prototype 15264617.0 Ops/sec
Write to object literal property on prototype 10724423.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