Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
one year ago
Write to data property
27.0M/s
Read from data property
26.8M/s
Read from object literal property on prototype
14.7M/s
Read from accessor method
14.5M/s
Write to object literal property on prototype
12.8M/s
Write to mutator method
12.8M/s
Read from object literal property
11.5M/s
Write to object literal property
7.8M/s
View exact numbers
Test name Executions per second
Write to data property 26,964,650 Ops/sec
Read from data property 26,783,836 Ops/sec
Read from object literal property on prototype 14,672,893 Ops/sec
Read from accessor method 14,493,177 Ops/sec
Write to object literal property on prototype 12,818,668 Ops/sec
Write to mutator method 12,775,163 Ops/sec
Read from object literal property 11,504,119 Ops/sec
Write to object literal property 7,786,587 Ops/sec
Script Preparation code:
Tests: