Test performance of jQuery .attr() vs. .prop() (v9)

Revision 9 of this benchmark created on


Preparation HTML

<meta name="english-linking-policy" content="EXIT">

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Setup

var x;

Test runner

Ready to run.

Testing in
TestOps/sec
.attr()
x = $('meta[name=english-linking-policy]').attr('content');
ready
.prop()
x = $('meta[name=english-linking-policy]').prop('content');
ready

Revisions

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