Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Ubuntu
Desktop
2 years ago
Test name Executions per second
Read from data property 598351808.0 Ops/sec
Write to data property 407121312.0 Ops/sec
Read from accessor method 553245632.0 Ops/sec
Write to mutator method 336609376.0 Ops/sec
Read from object literal property 562928832.0 Ops/sec
Write to object literal property 354184128.0 Ops/sec
Read from object literal property on prototype 559524352.0 Ops/sec
Write to object literal property on prototype 414487072.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