Script Preparation code:
Tests:
  • Array.find, 100 elementos

  • Array.find, 10 000 elementos

  • Array.find, 1 000 000 elementos

  • Array to Map + Map.get, 100 elementos

  • Array to Map + Map.get, 10 000 elementos

  • Array to Map + Map.get, 1 000 000 elementos

  • Array.find, TINY, 10 buscas

  • Array to Map + Map.get, TINY, 10 buscas

  • Array.find, SMALL, 100 buscas

  • Array to Map + Map.get, SMALL, 100 buscas

  • Array.find, SMALL, 1000 buscas

  • Array to Map + Map.get, SMALL, 1000 buscas

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.find, 100 elementos
    Array.find, 10 000 elementos
    Array.find, 1 000 000 elementos
    Array to Map + Map.get, 100 elementos
    Array to Map + Map.get, 10 000 elementos
    Array to Map + Map.get, 1 000 000 elementos
    Array.find, TINY, 10 buscas
    Array to Map + Map.get, TINY, 10 buscas
    Array.find, SMALL, 100 buscas
    Array to Map + Map.get, SMALL, 100 buscas
    Array.find, SMALL, 1000 buscas
    Array to Map + Map.get, SMALL, 1000 buscas

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.43
Chrome 117 on Windows
View result in a separate tab
Test name Executions per second
Array.find, 100 elementos 1881644.4 Ops/sec
Array.find, 10 000 elementos 101490.7 Ops/sec
Array.find, 1 000 000 elementos 194.5 Ops/sec
Array to Map + Map.get, 100 elementos 210262.8 Ops/sec
Array to Map + Map.get, 10 000 elementos 1303.2 Ops/sec
Array to Map + Map.get, 1 000 000 elementos 4.5 Ops/sec
Array.find, TINY, 10 buscas 166035.1 Ops/sec
Array to Map + Map.get, TINY, 10 buscas 127695.0 Ops/sec
Array.find, SMALL, 100 buscas 1137.4 Ops/sec
Array to Map + Map.get, SMALL, 100 buscas 1217.3 Ops/sec
Array.find, SMALL, 1000 buscas 125.7 Ops/sec
Array to Map + Map.get, SMALL, 1000 buscas 868.0 Ops/sec