What is the performance impact of using `scan` instead of custom implementations for sums?

Despite it being elegant, the machinery in `scan` far outweighs `sum += i` so I'd like to know the performance hit.