newObjectOrNewDom

Benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
new
function Part(){
    return $('<div>');
}
body = new Part();
body.attr('id','asdasd');
body2 = new Part();
body2.attr('id','asdasd');
ready
dom
body =  $('<div>').attr('id','asdasd');
body2 =  $('<div>').attr('id','asdasd');        
 
ready

Revisions

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