Test case name | Result |
---|---|
string.indexOf | |
string.includes | |
array.indexOf | |
array.includes |
Test name | Executions per second |
---|---|
string.indexOf | 587984000.0 Ops/sec |
string.includes | 2901697.8 Ops/sec |
array.indexOf | 596827072.0 Ops/sec |
array.includes | 577571264.0 Ops/sec |