Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 OPR/102.0.0.0
Opera 102
Linux
Desktop
one year ago
Test name Executions per second
Map.get 19102102.0 Ops/sec
WeakMap.get 17971800.0 Ops/sec
array[0] 19364668.0 Ops/sec
object.a 18830128.0 Ops/sec
object[symbol] 9401512.0 Ops/sec
Script Preparation code:
Tests:
  • Map.get

  • WeakMap.get

  • array[0]

  • object.a

  • object[symbol]


;