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:
3 years ago
by:
Guest
Go 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
typeof
1153.2M/s
isNaN
1116.7M/s
View exact numbers
Test name
Executions per second
✓
typeof
1,153,168,768 Ops/sec
isNaN
1,116,725,504 Ops/sec
Related benchmarks
typeof number vs. Number.isNan vs. isNan
typeof vs typeof isNaN
typeof number vs. Number.isNan vs. isNan vs self comparison. Versus let
Comments
Confirm delete:
Do you really want to delete benchmark?