Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
I have developed an windows application in C#,it is working fine.
It does some statistical computation, and gives me result in 14 seconds when i run it on my windows 7 PC (2 GB RAM).
But just out of curiosity I ran the same application in Windows Server 2008 R2 having 16 GB RAM, but here it takes 35 seconds for the same.

Also there are no calls to external environment like db connection, interop etc, its just simple C# windows application.


Can anyone please give some insight to why this is happening.
Posted
Updated 10-Jun-14 21:21pm
v2
Comments
Kornfeld Eliyahu Peter 11-Jun-14 3:18am    
From where the data for the statistical computation come from?
pparya27 11-Jun-14 3:26am    
we would input into the application
Kornfeld Eliyahu Peter 11-Jun-14 3:32am    
Are you computation is CPU hungry or more storage oriented?
Bernhard Hiller 11-Jun-14 3:34am    
Is Threading involved?
Were other programs actively running on that server?
pparya27 11-Jun-14 3:36am    
no other programs were running, except for a web application that is hosted in IIS7.

Computation speed is dependent on CPU power and your memory speed (DDR3>DDR2>DDR1 etc.), check your CPU relative power index on this site : http://www.cpubenchmark.net/[^]

Also background task and processes may steal CPU cycles also.
 
Share this answer
 
According to your answers the comparison you made is not real/true as the server was used to server others too.
If you want to compare performance on different machines you have to learn the art of benchmark!
Do some Google for benchmark tools and start learning...
http://lmgtfy.com/?q=how+to+compare+performance+of+two+computers[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900