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 4123296.2 Ops/sec
Write to data property 4373818.5 Ops/sec
Read from accessor method 2153001.0 Ops/sec
Write to mutator method 1595382.9 Ops/sec
Read from object literal property 1988761.2 Ops/sec
Write to object literal property 1192468.5 Ops/sec
Read from object literal property on prototype 2204997.8 Ops/sec
Write to object literal property on prototype 1495540.8 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