Test for performance tailrec vs while