Script creates many iterations of single function and shows elapsed time