recursion vs iteration

JavaScript performance comparison

Revision 3 of this test case created

Preparation code

<script>
function a (n) {
  if (--n) a(n);
}
function b (n) {}

Preparation code output