regexp vs indexOf (v76)

Revision 76 of this benchmark created on


Setup

var str = "hello world!";
    var regex = /world/;

Test runner

Ready to run.

Testing in
TestOps/sec
Regexp
str.match(regex);
ready
indexOf
str.indexOf("world");
ready

Revisions

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