Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Chrome 139
Windows
Desktop
one year ago
Write to mutator method
159.9M/s
Write to object literal property on prototype
156.9M/s
Read from data property
156.6M/s
Write to data property
155.4M/s
Read from object literal property on prototype
149.8M/s
Read from accessor method
147.5M/s
Read from object literal property
68.9M/s
Write to object literal property
15.8M/s
View exact numbers
Test name Executions per second
Write to mutator method 159,907,376 Ops/sec
Write to object literal property on prototype 156,852,832 Ops/sec
Read from data property 156,648,128 Ops/sec
Write to data property 155,438,304 Ops/sec
Read from object literal property on prototype 149,835,056 Ops/sec
Read from accessor method 147,499,632 Ops/sec
Read from object literal property 68,882,144 Ops/sec
Write to object literal property 15,778,001 Ops/sec
Script Preparation code:
Tests: