Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
Map.get 19696314.0 Ops/sec
WeakMap.get 18649580.0 Ops/sec
array[0] 19485074.0 Ops/sec
object.a 19714684.0 Ops/sec
object[symbol] 9764046.0 Ops/sec
object[“0”] 19579142.0 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]

  • object[“0”]