Answer the question
In order to leave comments, you need to log in
.net framework performance evaluation?
Does anyone know any useful .net performance benchmarks? Maybe some performance framework? So far I've only found NPerf ( www.codeproject.com/KB/architecture/nperf.aspx). Interested in evaluating the performance of .net itself, comparing different approaches (for example, String.Concat and StringBuilber.Append), etc. I would like to take a closer look at the existing developments.
Answer the question
In order to leave comments, you need to log in
For little things, like comparing the execution speed of methods, a simple IDisposable class is enough, which turns on the timer when created, and turns it off when Dispose is called and prints the results to the console. Used via using
.
Sample code (Pastie.org) .
Result of code execution:
String.Concat: 00:00:00.0012820
StringBuilder.Append: 00:00:00.0000240
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question