Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Ubuntu
Desktop
4 years ago
Test name Executions per second
Read from data property 127014312.0 Ops/sec
Write to data property 51121804.0 Ops/sec
Read from accessor method 70477312.0 Ops/sec
Write to mutator method 48567360.0 Ops/sec
Read from object literal property 61744160.0 Ops/sec
Write to object literal property 48450492.0 Ops/sec
Read from object literal property on prototype 58193876.0 Ops/sec
Write to object literal property on prototype 47355924.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


;