testing funciton speeds