jquery performance test (v3)

Revision 3 of this benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
with jquery
var newTr = '';
for (var a = 0; a < 1000; a++) {
        newTr += ('<tr>test</tr>');
}
var start = new Date();
$('#testTable').append(newTr);
 
ready
with pure js
var newTr = '';
for (var a = 0; a < 1000; a++) {
        newTr += ('<tr>test</tr>');
}
$('#testTable').append('<tbody>' + newTr + '</tbody>');
 
ready

Revisions

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