Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Windows
Desktop
2 months ago
Test name Executions per second
Map.get 16290397.0 Ops/sec
WeakMap.get 14946042.0 Ops/sec
array[0] 16222556.0 Ops/sec
object.a 16203186.0 Ops/sec
object[symbol] 8724494.0 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]


;