Run details:
Mozilla/5.0 (Linux; Android 11; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/46.06.4.5161
Chrome Mobile 77
Android
Mobile
3 years ago
Test name Executions per second
Read from data property 10790329.0 Ops/sec
Write to data property 10925721.0 Ops/sec
Read from accessor method 5309670.0 Ops/sec
Write to mutator method 4157820.2 Ops/sec
Read from object literal property 4389117.0 Ops/sec
Write to object literal property 2244888.5 Ops/sec
Read from object literal property on prototype 4520462.5 Ops/sec
Write to object literal property on prototype 3527368.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