Loop Testing

Benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
Function calling in loop
function CheckLoop(){
 $("table tbody").append("<tr><td>append</td></tr>");
}

for (var i=0 ; i<= 100; i++)
{
CheckLoop();
}
ready
function calling outside loop
function checkInLoop(){
for (var i=0 ; i<= 100; i++)
{
$("table tbody").append("<tr><td>append</td></tr>");
}
}
checkInLoop();
ready

Revisions

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