null vs Null

Benchmark created on


Preparation HTML

<script>
  var Null = function() { };
  var NULL = new Null();
  
  var a = NULL;
  var b = null;
  var c = {} // non-null
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
=== NULL
var r = ( a === NULL );
ready
=== null
var r = ( b === null );
ready
!== NULL
var r = ( c === NULL );
ready
!== null
var r = ( c === null );
ready

Revisions

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