|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
benchmarking C#!! Help!!
K, I'm doing a project where I benchmark the new .NET C# against Java. I need recommendations on benchmarking ideas or tools to use. Also any articles that have information on this will help. Lot of thanks!!
devlogos |
|
#2
|
|||
|
|||
|
what kind of benchmarking do you need? if you need to test site load/stress then check these out
a very nice article, if you care http://www.extremetech.com/article/...ap%253D4,00.asp open source tool http://www.opensta.org/ if you just wish to benchmark code parts, i find this to work well... Code:
int loops = 400000;
TimeSpan span1, span2;
long t1, t2;
t1 = DateTime.Now.Ticks;
for(i = 0; i < loops; i++)
{
........ testing code here
}
span1 = TimeSpan.FromTicks(DateTime.Now.Ticks - t1);
Console.WriteLine("{2:#,#} loops:\t{0}.{1}", span1.Seconds, span1.Milliseconds, loops);
hope that helps... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > benchmarking C#!! Help!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|