Underscore bind (1.7.0) vs. LoDash bind (2.4.1) (v80)

Revision 80 of this benchmark created by superbob76 on


Preparation HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
<script>
  lodash = _.noConflict();
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js">
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
LoDash bind
var foo = lodash.bind(function(x) {
  return this + x;
}, 1);
foo(1)
ready
Underscore.js bind
var foo = _.bind(function(x) {
  return this + x;
}, 1);
foo(1)
ready

Revisions

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