Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.2.1
Mobile
2 years ago
Test name Executions per second
Read from data property 14123550.0 Ops/sec
Write to data property 14403125.0 Ops/sec
Read from accessor method 6946995.5 Ops/sec
Write to mutator method 6408284.0 Ops/sec
Read from object literal property 7768694.0 Ops/sec
Write to object literal property 5550756.0 Ops/sec
Read from object literal property on prototype 5915409.0 Ops/sec
Write to object literal property on prototype 4136692.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