Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Linux
Desktop
9 months ago
Test name Executions per second
Map.get 13439116.0 Ops/sec
WeakMap.get 12283696.0 Ops/sec
array[0] 13355691.0 Ops/sec
object.a 13383874.0 Ops/sec
object[symbol] 7450751.5 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]


;