Skip to main content
This is lesson 6 of 14 in this module 6/14

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.

Video lesson

Want to watch this lesson?

This lesson is part of the study plan. Get instant access to all lectures, labs and practice exams.

Get the Study Plan