Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Firefox 74
Windows
Desktop
4 years ago
Test name Executions per second
Read from data property 231194944.0 Ops/sec
Write to data property 226852896.0 Ops/sec
Read from accessor method 181171520.0 Ops/sec
Write to mutator method 135971280.0 Ops/sec
Read from object literal property 153479792.0 Ops/sec
Write to object literal property 118879528.0 Ops/sec
Read from object literal property on prototype 159631200.0 Ops/sec
Write to object literal property on prototype 124085352.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