test vs indexof test (v4)

Revision 4 of this benchmark created on


Setup

var str = "This is just a random String",
        re = /just/;

Test runner

Ready to run.

Testing in
TestOps/sec
test
re.test(str)
ready
indexOf
str.indexOf('just') > -1
ready

Revisions

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