Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
3 months ago
Test name Executions per second
Array.includes 1376116.1 Ops/sec
String.includes 1889582.2 Ops/sec
Object Hash-map 2713935.0 Ops/sec
ES6 Set 2703434.5 Ops/sec
Array.indexOf 2232689.5 Ops/sec
Script Preparation code:
Tests:
  • Array.includes

  • String.includes

  • Object Hash-map

  • ES6 Set

  • Array.indexOf