check-js-type

Benchmark created by wiky 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
Object.prototype.toString.call({}) === '[object Object]';
 
ready

Revisions

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