Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
10 months ago
Test name Executions per second
Read from data property 14473382.0 Ops/sec
Write to data property 14604049.0 Ops/sec
Read from accessor method 7796979.5 Ops/sec
Write to mutator method 6600890.0 Ops/sec
Read from object literal property 6532143.0 Ops/sec
Write to object literal property 4051175.2 Ops/sec
Read from object literal property on prototype 8049761.0 Ops/sec
Write to object literal property on prototype 6618629.5 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