Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array.prototype.includes vs underscore.includes
(version: 0)
Comparing performance of:
Array.prototype.includes vs Underscore contains
Created:
4 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="underscore.js"></script>
Script Preparation code:
var array = [...Array(100000).keys()];
Tests:
Array.prototype.includes
array.includes(56212)
Underscore contains
_.includes(array, 56212)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array.prototype.includes
Underscore contains
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:
Array.prototype.some vs Lodash some
Comparisons of performance for finding a value in an array
JavaScript Benchmark: includes vs indexOf
Array.prototype.push vs Array.prototype.shift
Comments
Confirm delete:
Do you really want to delete benchmark?