Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
Index Search: Map<number, object> 0.6 Ops/sec
Index Search: Map<number, object> #2 2.0 Ops/sec
Index Search: Array<object> 781.5 Ops/sec
Index Search: Array<Array<number, object>> 781.7 Ops/sec
Key Search: Map<number, object> 640.6 Ops/sec
Key Search: Array<object> 0.6 Ops/sec
Key Search: Array<object> #2 5.4 Ops/sec
Key Search: Array<Array<number, object>> 0.6 Ops/sec
Script Preparation code:
Tests:
  • Map<number, object> - Index Search

  • Map<number, object> - Index Search #2

  • Map<number, object> - Key Search

  • Array<object> - Index Search

  • Array<object> - Key Search

  • Array<object> - Key Search #2

  • HTMLCollection - Index Search

  • HTMLCollection - Key Search

  • {Array, Map} - Index Search

  • {Array, Map} - Key Search


;