lastIndexOf vs indexOf (v104)

Revision 104 of this benchmark created on


Preparation HTML

<script>
  var str = "hello world!";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
lastIndexOf
str.lastIndexOf("hello");
ready
indexOf
str.indexOf("hello");
ready

Revisions

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