Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
11 months ago
Test name Executions per second
Map.get 32753214.0 Ops/sec
WeakMap.get 30721648.0 Ops/sec
array[0] 32847856.0 Ops/sec
object.a 32169188.0 Ops/sec
object[symbol] 16346475.0 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]


;