Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 YaBrowser/20.2.0.1145 Yowser/2.5 Safari/537.36
Yandex Browser 20
Mac OS X 10.16.0
Desktop
3 years ago
Test name Executions per second
Read from data property 9010921.0 Ops/sec
Write to data property 10258741.0 Ops/sec
Read from accessor method 4992049.5 Ops/sec
Write to mutator method 3749082.2 Ops/sec
Read from object literal property 4666348.5 Ops/sec
Write to object literal property 1954622.0 Ops/sec
Read from object literal property on prototype 5225800.5 Ops/sec
Write to object literal property on prototype 3882384.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