Run details:
Mozilla/5.0 (Linux; Android 7.0; LG-M400) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36
Chrome Mobile 87
Android 7.0
Mobile
3 years ago
Test name Executions per second
Array.includes - small 219362.7 Ops/sec
Set.has - small 157265.3 Ops/sec
Array.includes - large 62456.1 Ops/sec
Set.has - large 145298.5 Ops/sec
Script Preparation code:
Tests:
  • Array.includes - small

  • Set.has - small

  • Array.includes - large

  • Set.has - large