Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/129.0.6668.46 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 129
iOS 17.6
Mobile
3 months ago
Test name Executions per second
WeakMap set 10569102.0 Ops/sec
Symbol Property set 11138975.0 Ops/sec
WeakMap get 5211423.5 Ops/sec
Symbol Property get 4914573.5 Ops/sec
Symbol Property get (from own descriptor) 3157744.0 Ops/sec
Symbol Property get (if hasOwn) 2933374.2 Ops/sec
Script Preparation code:
Tests:
  • WeakMap set

  • Symbol Property set

  • WeakMap get

  • Symbol Property get

  • Symbol Property get (from own descriptor)

  • Symbol Property get (if hasOwn)