Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36 Edg/151.0.0.0
Chrome 151
Windows
Desktop
one month ago
Benchmark.js
Read from object literal property on prototype
876.7M/s
Write to mutator method
876.3M/s
Read from accessor method
875.0M/s
Write to object literal property on prototype
874.8M/s
Read from data property
841.8M/s
Write to data property
805.1M/s
Read from object literal property
107.8M/s
Write to object literal property
15.9M/s
View exact numbers
Test name Executions per second
Read from object literal property on prototype 876,714,112 Ops/sec
Write to mutator method 876,304,320 Ops/sec
Read from accessor method 875,009,728 Ops/sec
Write to object literal property on prototype 874,826,176 Ops/sec
Read from data property 841,810,496 Ops/sec
Write to data property 805,064,960 Ops/sec
Read from object literal property 107,807,296 Ops/sec
Write to object literal property 15,880,403 Ops/sec
Script Preparation code:
Tests: