Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118
Windows
Desktop
one year ago
Test name Executions per second
Map.get 1008140672.0 Ops/sec
WeakMap.get 59145496.0 Ops/sec
array[0] 1001735872.0 Ops/sec
object.a 992454400.0 Ops/sec
object[symbol] 886271360.0 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]


;