Demo: Benchmarking String versus StringBuilder
We walk through pre-recorded BenchmarkDotNet results comparing string concatenation against StringBuilder for 5,000 and 10,000 iterations, revealing a factor-of-90 to 240 speed difference. The lesson revisits an earlier graph showing the crossover point where StringBuilder becomes faster than the string class.
Previous Module
A Crash Course In Intermediate Language
This Module
Basic Performance Optimizations