regex or indexof

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
indexof
'.foo #bar'.indexOf('#')
ready
regex
/#/.test('.foo #bar');
ready
/(?:#)/.test('.foo #bar');
ready

Revisions

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