if statement check

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
don't specify
var g = null, x = 0;
for ( var i = 0; i < 10000; i++ )
{
  if ( !g )
    x += i;
}
ready
specify
var g = null, x = 0;
for ( var i = 0; i < 10000; i++ )
{
  if ( g == null )
    x += i;
}
ready
strict specify
var g = null, x = 0;
for ( var i = 0; i < 10000; i++ )
{
  if ( g === null )
    x += i;
}
ready

Revisions

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