The function using NumPy is clearly faster

Quick Reply