Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Mobile/15E148 Safari/604.1
Mobile Safari 13
iOS 13.7
Mobile
3 years ago
Test name Executions per second
Read from data property 17050356.0 Ops/sec
Write to data property 17020140.0 Ops/sec
Read from accessor method 7354395.5 Ops/sec
Write to mutator method 4723188.0 Ops/sec
Read from object literal property 9019929.0 Ops/sec
Write to object literal property 8016611.0 Ops/sec
Read from object literal property on prototype 8695774.0 Ops/sec
Write to object literal property on prototype 7543086.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