using System.Diagnostics;
public static void Main()
var stopwatch = new Stopwatch();
TestConcats(stopwatch, 100);
TestConcats(stopwatch, 1000);
TestConcats(stopwatch, 10000);
TestConcats(stopwatch, 100000);
private static void TestConcats(Stopwatch stopwatch, int iterations)
var testString = String.Empty;
for (int i = 0; i < iterations; ++i)
Console.WriteLine($"{iterations} concats took: {stopwatch.Elapsed}");