String.search vs String.indexOf

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
search
'asdfasdfasdfxpathasdfsdfasdf'.search('xpath')
ready
indexOf
'asdfasdfasdfxpathasdfsdfasdf'.indexOf('xpath')
ready

Revisions

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