Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Firefox 79
Ubuntu
Desktop
4 years ago
Test name Executions per second
Read from data property 298797696.0 Ops/sec
Write to data property 135782160.0 Ops/sec
Read from accessor method 195937840.0 Ops/sec
Write to mutator method 135231168.0 Ops/sec
Read from object literal property 169726064.0 Ops/sec
Write to object literal property 143993984.0 Ops/sec
Read from object literal property on prototype 167957808.0 Ops/sec
Write to object literal property on prototype 134658096.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