Native bind vs lodash (v73)

Revision 73 of this benchmark created on


Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js">
</script>
<script>
  var lodash = _.noConflict();
</script>
<script src="https://cdn.rawgit.com/lodash/lodash/ad10a1eba55e9530a09827549f56d2886a900b7f/dist/lodash.js"></script>
<script>
  var edge = _.noConflict();
</script>

Setup

var t1 = (function (x) {
      return this + x;
    }).bind(1);
    
    var t2 = lodash.bind(function (x) {
      return this + x;
    }, 1);
    
    var t3 = edge.bind(function (x) {
      return this + x;
    }, 1);

Test runner

Ready to run.

Testing in
TestOps/sec
Native bind
t1(1);
ready
Lo-Dash bind
t2(1)
ready
Lo-Dash bind (edge)
t3(1)
ready

Revisions

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