Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
array.includes 53529256.0 Ops/sec
array.indexOf 55720668.0 Ops/sec
set.has 176198608.0 Ops/sec
weakSet.has 103558368.0 Ops/sec
Script Preparation code:
Tests:
  • array.includes

  • array.indexOf

  • set.has

  • weakSet.has