comparing underscore.js 'isFunction' with 'typeof function'

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
underscore isFunction
var obj = function() {
    console.log("test")
    };
return !!(obj && obj.constructor && obj.call && obj.apply);
ready
typeof 'function'
var obj = function() {
    console.log("test")
    };
return 'function' === typeof obj;
ready

Revisions

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