Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
2 years ago
Read from data property
17.0M/s
Write to data property
16.6M/s
Read from accessor method
8.8M/s
Read from object literal property on prototype
8.7M/s
Read from object literal property
7.8M/s
Write to mutator method
6.9M/s
Write to object literal property on prototype
6.8M/s
Write to object literal property
4.0M/s
View exact numbers
Test name Executions per second
Read from data property 16,952,964 Ops/sec
Write to data property 16,600,442 Ops/sec
Read from accessor method 8,766,613 Ops/sec
Read from object literal property on prototype 8,691,320 Ops/sec
Read from object literal property 7,773,414 Ops/sec
Write to mutator method 6,852,632 Ops/sec
Write to object literal property on prototype 6,792,076 Ops/sec
Write to object literal property 4,021,822 Ops/sec
Script Preparation code:
Tests: