Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Mac OS X 10.15.7
Desktop
one year ago
Read from object literal property on prototype
27.0M/s
Read from data property
26.6M/s
Write to data property
26.6M/s
Read from accessor method
26.5M/s
Read from object literal property
21.1M/s
Write to mutator method
8.9M/s
Write to object literal property on prototype
8.9M/s
Write to object literal property
6.2M/s
View exact numbers
Test name Executions per second
Read from object literal property on prototype 27,012,620 Ops/sec
Read from data property 26,632,470 Ops/sec
Write to data property 26,598,838 Ops/sec
Read from accessor method 26,519,682 Ops/sec
Read from object literal property 21,108,186 Ops/sec
Write to mutator method 8,889,552 Ops/sec
Write to object literal property on prototype 8,876,211 Ops/sec
Write to object literal property 6,191,070 Ops/sec
Script Preparation code:
Tests: