Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
Firefox 61
Ubuntu
Desktop
6 years ago
Test name Executions per second
Read from data property 205660592.0 Ops/sec
Write to data property 177618448.0 Ops/sec
Read from accessor method 145075728.0 Ops/sec
Write to mutator method 110149624.0 Ops/sec
Read from object literal property 137048016.0 Ops/sec
Write to object literal property 102746552.0 Ops/sec
Read from object literal property on prototype 129512152.0 Ops/sec
Write to object literal property on prototype 103442320.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