C
C
Coderick2011-03-04 09:50:20
.NET
Coderick, 2011-03-04 09:50:20

.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

2 answer(s)
O
OpenMinded, 2011-03-08
@OpenMinded

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

F
Fduch, 2011-03-28
@Fduch

How could you not find a profiler built into Visual Studio itself? In the 2010 version, the necessary tools are in the Analyze menu.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question