underscore lodash native

Benchmark created on


Preparation HTML

<script src="//underscorejs.org/underscore-min.js"></script>
<script src="//raw.github.com/bestiejs/lodash/master/dist/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.