binding vs clicking

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<a href="#" id="foo">im a link, yo</a>
<script>
  var myLink = $('#foo');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
bind
myLink.bind('click', function() {});
ready
click
myLink.click(function() {});
ready

Revisions

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