Source code

Revision control

Copy as Markdown

Other Tools

function testDecayingInnerLoop() {
var i, j, k = 10;
for (i = 0; i < 5000; ++i) {
for (j = 0; j < k; ++j);
--k;
}
return i;
}
assertEq(testDecayingInnerLoop(), 5000);