Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36
Chrome Mobile 122
Android
Mobile
10 months ago
Test name Executions per second
Map.get 1264033.2 Ops/sec
WeakMap.get 991640.4 Ops/sec
array[0] 1304015.9 Ops/sec
object.a 1303643.9 Ops/sec
object[symbol] 931890.5 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]