Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0
Chrome 129
Mac OS X 10.15.7
Desktop
3 months ago
Test name Executions per second
WeakMap set 10728808.0 Ops/sec
Symbol Property set 11592596.0 Ops/sec
WeakMap get 5138926.0 Ops/sec
Symbol Property get 5908235.5 Ops/sec
Symbol Property get (from own descriptor) 3918382.8 Ops/sec
Symbol Property get (if hasOwn) 3529869.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)