Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
24 days ago
Test name Executions per second
2-Level Map (Map<K1, Map<K2, V>>) 1.9 Ops/sec
2-Level Array (V[][]) 4.6 Ops/sec
2-Level Object (Object.<K1, Object.<K2, V>>) 5.4 Ops/sec
1-Level Array (V[]) 0.2 Ops/sec
1-Level Object (Object.<[K1, K2], V>) 0.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • 2-Level Map (Map<K1, Map<K2, V>>)

  • 2-Level Array (V[][])

  • 2-Level Object (Object.<K1, Object.<K2, V>>)

  • 1-Level Array (V[])

  • 1-Level Object (Object.<[K1, K2], V>)