jquery create vs string

Benchmark created by dsbics on


Preparation HTML

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

Setup

var s='<select>';
    var c=document.createElement('select');

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery(string)
$('#string').html(s);
ready
jQuery(create)
$('#create').html(c);
ready

Revisions

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

  • Revision 1: published by dsbics on