test vs indexof test

Benchmark created on


Setup

var str = "This is just a random String";

Test runner

Ready to run.

Testing in
TestOps/sec
test
/just/ig.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.