Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Booean coercion vs Boolejan coercion vs Boolejan 2 coercion
(version: 0)
Comparing performance of:
Boolean vs Boolejan vs Boolejan 2
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var bFalse = false; var sEmpty = ''; var sFilled = 'Foo'; var nZero = 0; var nOne = 1; var Boolejan = (input) => !!input var Boolejan2 = (input) => !input ? false : true
Tests:
Boolean
Boolean(bFalse) Boolean(sEmpty) Boolean(sFilled) Boolean(nZero) Boolean(nOne)
Boolejan
Boolejan(bFalse) Boolejan(sEmpty) Boolejan(sFilled) Boolejan(nZero) Boolejan(nOne)
Boolejan 2
Boolejan2(bFalse) Boolejan2(sEmpty) Boolejan2(sFilled) Boolejan2(nZero) Boolejan2(nOne)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Boolean
Boolejan
Boolejan 2
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Boolean constructor vs double negotiation trick in javascript 2
Boolean constructor vs double negotiation trick in javascript 3
Booean coercion vs Boolejan coercion
Battle of the bools
Comments
Confirm delete:
Do you really want to delete benchmark?