Skip to content

Instantly share code, notes, and snippets.

@spadgos
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spadgos/895bd47747b39f519ce6 to your computer and use it in GitHub Desktop.
Save spadgos/895bd47747b39f519ce6 to your computer and use it in GitHub Desktop.
Bound vs wrapped functions
var someObj = something();
return {
bound: someObj.fn.bind(someObj), // 4M ops/sec
wrapped: function (a) { // 16M ops/sec
return someObj.fn(a);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment