Test name | Executions per second |
---|---|
emptyFunc | 9043710.0 Ops/sec |
trueFunc | 8971149.0 Ops/sec |
undefinedFunc | 3058764.2 Ops/sec |
nullFunc | 9285295.0 Ops/sec |
notDefinedFunc | 4881832.5 Ops/sec |
definedFunc | 3535127.2 Ops/sec |
staticFunc | 9332261.0 Ops/sec |
var notDefined;
var defined = 1;
var emptyFunc = function() {};
var trueFunc = function() { return true; }
var undefinedFunc = function() { return undefined; }
var nullFunc = function() { return null; }
var notDefinedFunc = function() { return notDefined; }
var definedFunc = function() { return defined; }
var staticFunc = function() { return 1; }
emptyFunc();
trueFunc();
undefinedFunc();
nullFunc();
notDefinedFunc();
definedFunc();
staticFunc();