Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0
Firefox 116
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Array.includes 12473082.0 Ops/sec
String.includes 14807794.0 Ops/sec
Object Hash-map 735901376.0 Ops/sec
ES6 Set 737077440.0 Ops/sec
Array.indexOf 12296710.0 Ops/sec
Script Preparation code:
Tests:
  • Array.includes

  • String.includes

  • Object Hash-map

  • ES6 Set

  • Array.indexOf