Quick study on the cost of recursion in nodejs