Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Linux
Desktop
one month ago
Test name Executions per second
includes 127110192.0 Ops/sec
indexof 126610608.0 Ops/sec
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('orange');