HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
const fruits = ['apple', 'banana', 'orange', 'grape'];
Tests:
  • includes

     
    fruits.includes('banana');
  • indexof

     
    fruits.indexOf('banana');
  • includes first item

     
    fruits.includes('apple');
  • indexof first item

     
    fruits.indexOf('apple');
  • includes last item

     
    fruits.includes('grape');
  • indexof last item

     
    fruits.indexOf('apple');
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    includes
    indexof
    includes first item
    indexof first item
    includes last item
    indexof last item

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 OPR/117.0.0.0
Opera 117 on Windows
View result in a separate tab
Test name Executions per second
includes 118877912.0 Ops/sec
indexof 118218736.0 Ops/sec
includes first item 127120976.0 Ops/sec
indexof first item 126442648.0 Ops/sec
includes last item 102583376.0 Ops/sec
indexof last item 127433416.0 Ops/sec