jquery removeAttr() vs classic js removeAttribute()

Benchmark created on


Preparation HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<input type="text" disabled="disabled" id="btn"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery removeAttr()
$("#btn").removeAttr("disabled");
ready
standard js
document.getElementById('btn').removeAttribute("disabled");
ready

Revisions

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