underscore lodash native (v6)

Revision 6 of this benchmark created by carlesba on


Preparation HTML

<script src="//underscorejs.org/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.2.0/lodash.min.js"></script>
<script>
  var lodash = _.noConflict();
</script>

Setup

var arr = [1, 2, 3, 'test', 'anotherString', 1, 3, 98, 1, '', undefined, 'bla', 3];

Test runner

Ready to run.

Testing in
TestOps/sec
Underscore
_.find(arr, function (item) {return item === 'bla'});
ready
Lodash
lodash.find(arr, function (item) {return item === 'bla'});
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.