isNaN, typeof

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
isNaN
for(var i = 0; i < 1000000; i++){
   var x = isNaN(Math.random());
}
ready
no isNaN
for(var i = 0; i < 1000000; i++){
   var x = Math.random();
}
ready
typeof
for(var i = 0; i < 1000000; i++){
    var x = typeof Math.random();
}
ready

Revisions

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