Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Windows
Desktop
2 years ago
Read from data property
16.3M/s
Write to data property
16.2M/s
Read from accessor method
8.5M/s
Read from object literal property on prototype
8.4M/s
Read from object literal property
7.7M/s
Write to object literal property on prototype
7.2M/s
Write to mutator method
7.0M/s
Write to object literal property
4.4M/s
View exact numbers
Test name Executions per second
Read from data property 16,262,499 Ops/sec
Write to data property 16,181,932 Ops/sec
Read from accessor method 8,488,740 Ops/sec
Read from object literal property on prototype 8,445,104 Ops/sec
Read from object literal property 7,695,370 Ops/sec
Write to object literal property on prototype 7,153,300 Ops/sec
Write to mutator method 6,965,058 Ops/sec
Write to object literal property 4,447,482 Ops/sec
Script Preparation code:
Tests: