indexOf or search

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
indexOf
"abcdefghijklmnopqrstuvwxyz".indexOf("y")
ready
search
"abcdefghijklmnopqrstuvwxyz".search(/y/)
ready

Revisions

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