inline att

Benchmark created by Kevin on


Preparation HTML

<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<div id="demo"></div>
<script>
  var demoDiv = $("#demo");
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
attribute object
$('<p />', {
 id: "myP",
 class: "myClass"
}).appendTo(demoDiv);
ready
inline attributes
$('<p id="myP" class="mClass" />').appendTo(demoDiv);
ready

Revisions

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