Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
number vs boolean perf
(version: 0)
Comparing performance of:
value exists w/ boolean vs value exists w/ integer vs value doesn't exist w/ boolean vs value doesn't exist w/ integer
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
value exists w/ boolean
const obj = { 2: true, 7: true } if (obj[3]) { return; }
value exists w/ integer
const obj = { 2: 1, 7: 1 } if (obj[3]) { return; }
value doesn't exist w/ boolean
const obj = { 2: true, 7: true } if (obj[3]) { return; }
value doesn't exist w/ integer
const obj = { 2: 1, 7: 1 } if (obj[3]) { return; }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
value exists w/ boolean
value exists w/ integer
value doesn't exist w/ boolean
value doesn't exist w/ integer
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!
Comments
Confirm delete:
Do you really want to delete benchmark?