Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Chrome 90
Linux
Desktop
3 years ago
Test name Executions per second
Array.includes - small 1262624.5 Ops/sec
Set.has - small 775979.6 Ops/sec
Array.includes - large 1077157.4 Ops/sec
Set.has - large 530033.4 Ops/sec
Script Preparation code:
Tests:
  • Array.includes - small

  • Set.has - small

  • Array.includes - large

  • Set.has - large