Script Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
object[prop]
92.0M/s
object.a
60.6M/s
object[symbol]
14.3M/s
WeakMap.get
13.5M/s

Fastest: object[prop] (6.8x faster)

View exact numbers
  • object[prop]: 91,950,216 ops/sec
  • object.a: 60,580,388 ops/sec
  • object[symbol]: 14,310,065 ops/sec
  • WeakMap.get: 13,504,257 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
    WeakMap.get
    object[prop]
    object[symbol]
    object.a

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Chrome 131 on Windows
View result in a separate tab
object.a
180.1M/s
object[symbol]
165.7M/s
object[prop]
159.1M/s
WeakMap.get
101.8M/s
View exact numbers
Test name Executions per second
object.a 180,112,784 Ops/sec
object[symbol] 165,747,584 Ops/sec
object[prop] 159,054,288 Ops/sec
WeakMap.get 101,816,112 Ops/sec