Benchmarking code shows mutable approach 2x speed of functional foldLeft