Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Windows
Desktop
3 months ago
Test name Executions per second
Map.get 12868095.0 Ops/sec
WeakMap.get 12563934.0 Ops/sec
array[0] 13069127.0 Ops/sec
object.a 12467656.0 Ops/sec
object[symbol] 6722900.5 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]


;