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