Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0
Firefox 69
Fedora
Desktop
5 years ago
Test name Executions per second
Read from data property 245301808.0 Ops/sec
Write to data property 102673200.0 Ops/sec
Read from accessor method 170903760.0 Ops/sec
Write to mutator method 93807256.0 Ops/sec
Read from object literal property 149016128.0 Ops/sec
Write to object literal property 97546368.0 Ops/sec
Read from object literal property on prototype 150223616.0 Ops/sec
Write to object literal property on prototype 91498000.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