Prop vs DOM checked

Benchmark created by Eddie Monge on


Preparation HTML

<input id="me" type="checkbox" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
  var me = $('#me').prop('checked', true);
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Prop
me.prop('checked');
ready
DOM
me[0].checked;
ready

Revisions

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

  • Revision 1: published by Eddie Monge on