string search

Benchmark created on


Setup

let longstr = Array(1000).map(el => 'hello').join('') + 'world';
let shortstr = 'helloworld';

Test runner

Ready to run.

Testing in
TestOps/sec
early search long
longstr.includes('hello')
ready
early search short
shortstr.includes('hello');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.