Script Preparation code:
Tests:

Historical Performance Data aggregated from 27 community runs

Desktop Results:
Chrome 27 runs
Read from data property
31.1M/s
Write to data property
30.9M/s
Read from accessor method
16.7M/s
Read from object literal property on prototype
16.5M/s
Write to mutator method
14.6M/s
Write to object literal property on prototype
14.3M/s
Read from object literal property
13.3M/s
Write to object literal property
9.0M/s

Fastest: Read from data property (3.4x faster)

View exact numbers
  • Read from data property: 31,055,598 ops/sec
  • Write to data property: 30,865,770 ops/sec
  • Read from accessor method: 16,697,731 ops/sec
  • Read from object literal property on prototype: 16,498,720 ops/sec
  • Write to mutator method: 14,593,375 ops/sec
  • Write to object literal property on prototype: 14,310,569 ops/sec
  • Read from object literal property: 13,345,314 ops/sec
  • Write to object literal property: 9,029,430 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Read from data property
    Write to data property
    Read from accessor method
    Write to mutator method
    Read from object literal property
    Write to object literal property
    Read from object literal property on prototype
    Write to object literal property on prototype

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Chrome 143 on Windows
View result in a separate tab
Read from data property
132.3M/s
Read from accessor method
129.6M/s
Write to mutator method
129.4M/s
Write to data property
124.5M/s
Read from object literal property on prototype
117.5M/s
Write to object literal property on prototype
114.3M/s
Read from object literal property
51.5M/s
Write to object literal property
10.1M/s
View exact numbers
Test name Executions per second
Read from data property 132,316,656 Ops/sec
Read from accessor method 129,604,000 Ops/sec
Write to mutator method 129,409,640 Ops/sec
Write to data property 124,522,288 Ops/sec
Read from object literal property on prototype 117,481,648 Ops/sec
Write to object literal property on prototype 114,295,216 Ops/sec
Read from object literal property 51,487,680 Ops/sec
Write to object literal property 10,112,071 Ops/sec