Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.4.1
Mobile
7 months ago
Test name Executions per second
Read from data property 28814406.0 Ops/sec
Write to data property 29249536.0 Ops/sec
Read from accessor method 17523364.0 Ops/sec
Write to mutator method 14257870.0 Ops/sec
Read from object literal property 17037174.0 Ops/sec
Write to object literal property 13937561.0 Ops/sec
Read from object literal property on prototype 17050800.0 Ops/sec
Write to object literal property on prototype 14029181.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