Casting-type (v15)

Revision 15 of this benchmark created by Daniel St. Jules on


Test runner

Ready to run.

Testing in
TestOps/sec
objects
var arr = [1, "test", {}, []];

var x = "";
var y = "";
var z = "";

arr.indexOf("test");
ready
strings
var arr = ["", "test", "", ""];

var x = {};
var y = [];
var z = 1;

arr.indexOf("test");
ready

Revisions

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