Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36
Chrome Mobile 124
Android
Mobile
one month ago
Test name Executions per second
Array.find, 100 elements 1292390.6 Ops/sec
Map.get, 100 elements 1696359.0 Ops/sec
Array.find, 1000 elements 402956.7 Ops/sec
Map.get, 1000 elements 1749510.5 Ops/sec
Array.find, 10 000 elements 36078.0 Ops/sec
Map.get, 10 000 elements 1762862.0 Ops/sec
Script Preparation code:
Tests:
  • Array.find, 100 elements

  • Map.get, 100 elements

  • Array.find, 1000 elements

  • Map.get, 1000 elements

  • Array.find, 10 000 elements

  • Map.get, 10 000 elements


;