Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4427.5 Safari/537.36
Chrome 90
Linux
Desktop
3 years ago
Test name Executions per second
Read from data property 13273488.0 Ops/sec
Write to data property 14139343.0 Ops/sec
Read from accessor method 7271342.0 Ops/sec
Write to mutator method 5473875.0 Ops/sec
Read from object literal property 5444150.5 Ops/sec
Write to object literal property 2974268.8 Ops/sec
Read from object literal property on prototype 6947567.5 Ops/sec
Write to object literal property on prototype 5704373.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


;