Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Linux
Desktop
2 years ago
Test name Executions per second
String.prototype.includes 48206.8 Ops/sec
String.prototype.indexOf 995340096.0 Ops/sec
Script Preparation code:
Tests:
  • String.prototype.includes

  • String.prototype.indexOf