Casting-type (v20)

Revision 20 of this benchmark created by SomeCrap on


Test runner

Ready to run.

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


arr.indexOf({"test": true});
ready
strings
var arr = ["", "test", "", ""];

arr.indexOf("test");
ready

Revisions

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