Temp (v3)

Revision 3 of this benchmark created on


Description

As the name says temp, so free edits just to test things.

Setup

let str = "\"'`{[";
let arr = ["\"","'","`","{","["];

Test runner

Ready to run.

Testing in
TestOps/sec
String.indexOf()
str.indexOf("\"");
str.indexOf("'");
str.indexOf("`");
str.indexOf("{");
str.indexOf("[");
str.indexOf("-");
ready
Array.indexOf()
arr.indexOf("\"");
arr.indexOf("'");
arr.indexOf("`");
arr.indexOf("{");
arr.indexOf("[");
arr.indexOf("-");
ready

Revisions

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