Script Preparation code:
AخA
 
var string = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
Tests:
  • IndexOf

     
    string.indexOf('tempor') > -1
  • Includes

     
    string.includes('tempor')
  • noteq

     
    string.indexOf('tempor') !== -1
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    IndexOf
    Includes
    noteq

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94 on Linux
View result in a separate tab
Test name Executions per second
IndexOf 16623541.0 Ops/sec
Includes 19209692.0 Ops/sec
noteq 15800014.0 Ops/sec