Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Boolean vs !== 0
(version: 1)
Comparing performance of:
Test1 vs Test2
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
var newArr = ['1', '2', '3', '4'];
Tests:
Test1
newArr.length !== 0
Test2
Boolean(newArr.length)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Test1
Test2
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser/OS:
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Test1
160374576.0 Ops/sec
Test2
146072352.0 Ops/sec
Related benchmarks:
Boolean vs !!
>0 vs !!
Boolean vs !!2
Boolean vs !!3
Boolean vs !!4
Check mytest
next test
boolean vs math
Boolean vs !!!!!!!!
Boolean vs !! vs length
Comments
Confirm delete:
Do you really want to delete benchmark?