Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36
Chrome 88
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
string.indexOf 782620480.0 Ops/sec
string.includes 4247179.0 Ops/sec
array.indexOf 783968192.0 Ops/sec
array.includes 790466432.0 Ops/sec
Script Preparation code:
Tests:
  • string.indexOf

  • string.includes

  • array.indexOf

  • array.includes


;