type of a variable (v9)

Revision 9 of this benchmark created 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.