Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Windows
Desktop
2 years ago
Test name Executions per second
WeakMap get 13492340.0 Ops/sec
Symbol with WeakMap fallback get 409640224.0 Ops/sec
WeakMap set 9721204.0 Ops/sec
Symbol with WeakMap fallback set 350987072.0 Ops/sec
has 12228535.0 Ops/sec
Script Preparation code:
Tests:
  • WeakMap get

  • Symbol with WeakMap fallback get

  • WeakMap set

  • Symbol with WeakMap fallback set

  • has