Adding _.bind (v44)

Revision 44 of this benchmark created on


Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js"></script>
<script>
function foo(){}
</script>

Setup

var test1, a = [], b = {}, c = '123';
  
  function _test1(a,b,c) {
    return a,b,c;
  }
  
  test1 = _test1.bind(undefined, a, b, c);
  
  function test2() {
    return a, b, c
  };

Test runner

Ready to run.

Testing in
TestOps/sec
bind call

test1();
ready
closure call
test2();
ready
bind
test1 = _test1.bind(undefined, a, b, c);
ready
closure
function test2() {
  return a, b, c
};
ready

Revisions

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