Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.6
Mobile
one year ago
Read from object literal property
203.5M/s
Write to mutator method
200.5M/s
Read from accessor method
199.5M/s
Read from object literal property on prototype
198.5M/s
Read from data property
196.2M/s
Write to object literal property
195.3M/s
Write to object literal property on prototype
190.1M/s
Write to data property
188.7M/s
View exact numbers
Test name Executions per second
Read from object literal property 203,491,696 Ops/sec
Write to mutator method 200,495,424 Ops/sec
Read from accessor method 199,501,600 Ops/sec
Read from object literal property on prototype 198,536,752 Ops/sec
Read from data property 196,208,432 Ops/sec
Write to object literal property 195,338,048 Ops/sec
Write to object literal property on prototype 190,104,640 Ops/sec
Write to data property 188,676,528 Ops/sec
Script Preparation code:
Tests: