isNaN vs x !== x (v15)

Revision 15 of this benchmark created by me on


Setup

x = "str";
    y = 43;
    z = NaN;

Test runner

Ready to run.

Testing in
TestOps/sec
isNaN()
if(isNaN(x));
if(isNaN(y));
if(isNaN(z));
ready
val !== val
if(x !== x);
if(y !== y);
if(z !== z);
 
ready

Revisions

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