object type detection

Benchmark created on


Test runner

Ready to run.

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

Revisions

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