Run details:
Mozilla/5.0 (X11; CrOS x86_64 14469.59.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.94 Safari/537.36
Chrome 99
Chrome OS 14469.59.0
Desktop
2 years ago
Test name Executions per second
Read from data property 3797949.2 Ops/sec
Write to data property 3915729.0 Ops/sec
Read from accessor method 1789719.0 Ops/sec
Write to mutator method 1341839.6 Ops/sec
Read from object literal property 1626872.6 Ops/sec
Write to object literal property 1032397.8 Ops/sec
Read from object literal property on prototype 1886919.6 Ops/sec
Write to object literal property on prototype 1618839.4 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