Blog Post · Concatenation
Concatenation ^
Posted On Wednesday 1 September 2010 by Freddie Nash (FredFace)
Hello! Its another pointless test of the .NET Framework!
I ran a quick test just now, to see which is faster (without csc optimizations):
- string.Concat();
- string.Format();
- a + b;
I won't go into detail, and shall just give you my results.
The times in Milliseconds are:
string.Concat(): 44
string.Format(): 186
a + b: 25
No suprises there, as String.Format does a lot more then the other 2 methods, but this does show how much slower it is. I never use it now :(