Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
object properties comparison
(version: 0)
Comparing performance of:
includes from list vs equality check
Created:
4 years ago
by:
Guest
Jump to the latest result
Tests:
includes from list
const a1 = [1,2,3] const a2 = [1,2,3,4,5] return [a1.length, a2.length].includes(3)
equality check
const a1 = [1,2,3] const a2 = [1,2,3,4,5] return 3 === a1.length || 3 === a2.length
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
includes from list
equality check
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:
object property lookup: in operator vs undefined comparison
hasOwnProperty string vs number
! syntax vs === undefined
if (!x) syntax vs if (x === undefined)
Object.hasOwn vs 'in' performance v2
Comments
Confirm delete:
Do you really want to delete benchmark?