C# Benchmark: StringBuilder vs. GenericList. Which one is the best?
I came across discussions claiming that GenericList might outperform StringBuilder in certain scenarios. Intrigued by this, I decided to conduct a benchmark to clarify the matter and learn more about it. Benchmark setup code Without spending your time, below is the Benchmark setup code. I’ve also uploaded it on GitHub: https://github.com/eliasedc/BenchmarkString YES! Just for fun, I’m also running a test on the native ‘string’ class. […]