benchmarking appending to strings in c++