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 17840456.0 Ops/sec
WeakMap.get 16532500.0 Ops/sec
array[0] 17772888.0 Ops/sec
object.a 18373782.0 Ops/sec
object[symbol] 9234975.0 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]


;