array.includes vs set.has vs object property

one month ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Test name Executions per second
array includes 14223660.0 Ops/sec
set has 13100440.0 Ops/sec
object property 14452630.0 Ops/sec
Script Preparation code:
Tests:
  • array includes

  • set has

  • object property

Open this result on MeasureThat.net