trigger vs click

Benchmark created by Stackoverflwo on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<input type="button" class="myEl" value="help"/>

Test runner

Ready to run.

Testing in
TestOps/sec
click
$('.myEl').click();
ready
trigger
$('.myEl').trigger('click');
ready

Revisions

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

  • Revision 1: published by Stackoverflwo on