"Type of undefined" vs "=== undefined" (v65)

Revision 65 of this benchmark created on


Setup

var a = 1, b = true, c = "c", d = function(){}, e = {}, u;

Test runner

Ready to run.

Testing in
TestOps/sec
number
typeof a === 'object';
ready
boolean
typeof b === 'object';
ready
string
typeof c === 'object';
ready
function
typeof d === 'object';
ready
object
typeof e === 'object';
ready
equals undefined
u === e;
ready
control group
; // nothing
ready

Revisions

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