Casting-type (v18)

Revision 18 of this benchmark created on


Test runner

Ready to run.

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

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.