Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
inclues vs has
(version: 0)
Comparing performance of:
includes vs has
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var historyActions = [ 'create', 'createMany', 'update', 'updateMany', 'upsert', 'delete', 'deleteMany', ]; var historySet = new Set(historyActions)
Tests:
includes
historyActions.includes('delete')
has
historySet.has('delete')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
includes
has
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:
delete vs set
Unset vs Delete
array.includes vs. set.has on the fly
new Set vs set.clear()
set.has (w/ creation) vs. array.includes
Comments
Confirm delete:
Do you really want to delete benchmark?