type of a variable (v10)

Revision 10 of this benchmark created by Dillon on


Setup

var obj = {
      one: 1
    };

Test runner

Ready to run.

Testing in
TestOps/sec
obj typeof ==
typeof obj == "object";
ready
obj typeof ===
typeof obj === "object";
ready
obj instanceof
obj instanceof Object;
ready
toString
obj.toString() === "[object Object]";
ready

Revisions

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