Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
11 months ago
Test name Executions per second
Map.get 35276856.0 Ops/sec
WeakMap.get 33058720.0 Ops/sec
array[0] 34423040.0 Ops/sec
object.a 32717672.0 Ops/sec
object[symbol] 16794938.0 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]


;