Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
isnan vs typeof
(version: 0)
Comparing performance of:
isNaN vs typeof
Created:
2 years ago
by:
Guest
Jump to the latest result
Tests:
isNaN
isNaN(5)
typeof
typeof 5 === 'number' && isNaN(5)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
isNaN
typeof
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0
Browser/OS:
Firefox 117 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
isNaN
1116725504.0 Ops/sec
typeof
1153168768.0 Ops/sec
Related benchmarks:
typeof number vs. Number.isNan vs. isNan
typeof vs typeof isNaN
typeof x === 'number' vs isNaN(x) rtestset22
typeof number vs. Number.isNan vs. isNan vs self comparison. Versus let
Comments
Confirm delete:
Do you really want to delete benchmark?