isnan vs compare nan

Benchmark created by Josh on


Setup

var a = 0;

Test runner

Ready to run.

Testing in
TestOps/sec
isNaN
isNaN(a);
ready
Compare to NaN
a === NaN
ready

Revisions

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