Compare string searching methods.
const str = 'The quick brown fox jumps over the lazy dog'.repeat(100);
const target = 'lazy';Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| indexOf | | ready |
| includes | | ready |
| RegExp.test | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.