Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
2 months ago
Test name Executions per second
Array.includes 8027886.0 Ops/sec
String.includes 10178991.0 Ops/sec
Object Hash-map 9064670.0 Ops/sec
ES6 Set 10161015.0 Ops/sec
Array.indexOf 7711914.0 Ops/sec
Script Preparation code:
Tests:
  • Array.includes

  • String.includes

  • Object Hash-map

  • ES6 Set

  • Array.indexOf