check-js-type (v3)

Revision 3 of this benchmark created on


Description

check js type

Test runner

Ready to run.

Testing in
TestOps/sec
typeof
typeof {} === 'object';
ready
instanceof
({}) instanceof Object;
ready
constructor
({}).constructor === Object;
ready
Object.prototype.toString.call
{}.prototype.toString() === '[object Object]';
ready
o.constructor.toString()
{}.constructor.toString() === '[object Object]';
ready

Revisions

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