Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Chrome 131
Windows
Desktop
yesterday
Test name Executions per second
Array.find, 3elements 25565820.0 Ops/sec
Map.get, 3 elements 41586064.0 Ops/sec
Array.find, 10 elements 22213176.0 Ops/sec
Map.get, 10 elements 43002588.0 Ops/sec
Script Preparation code:
Tests:
  • Array.find, 3elements

  • Map.get, 3 elements

  • Array.find, 10 elements

  • Map.get, 10 elements