Script Preparation code:
Tests:

Historical Performance Data aggregated from 42 community runs

Desktop Results:
Chrome 33 runs
Hashmap
869/s
Array.filter
0/s

Fastest: Hashmap (2325.6x faster)

View exact numbers
  • Hashmap: 869 ops/sec
  • Array.filter: 0 ops/sec
Firefox 9 runs
Hashmap
572/s
Array.filter
1/s

Fastest: Hashmap (960.8x faster)

View exact numbers
  • Hashmap: 572 ops/sec
  • Array.filter: 1 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Hashmap
    Array.filter

    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/137.0.0.0 Safari/537.36
Chrome 137 on Windows
View result in a separate tab
Hashmap
19K/s
Array.filter
0/s
View exact numbers
Test name Executions per second
Hashmap 18,745 Ops/sec
Array.filter 0 Ops/sec