Skip to content

Instantly share code, notes, and snippets.


Sven Grosen ledbutter

  • United States
View GitHub Profile
ledbutter / gist:d51bdb8f1ef81fcc7e6c
Created Aug 13, 2015
Compare String.Join and Aggregate()
View gist:d51bdb8f1ef81fcc7e6c
IEnumerable<string> values = Enumerable.Repeat("Foo", 100);
Stopwatch watch = new Stopwatch();
Console.WriteLine(String.Join("<br/>", values));
Console.WriteLine("Performance with Join: {0}", watch.Elapsed);
// "Performance with Join: 00:00:00.0001146"
You can’t perform that action at this time.