.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 16th, 2002, 01:05 PM
devlogos devlogos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 3 devlogos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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
Comments on this post
Gran Roguismo agrees!

Reply With Quote
  #2  
Old June 4th, 2002, 11:55 AM
AlexDG AlexDG is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 1999
Location: Canada, Toronto
Posts: 103 AlexDG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to AlexDG
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...
Comments on this post
Gran Roguismo agrees!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > benchmarking C#!! Help!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway