Last post Aug 23, 2012 11:01 AM by gerrylowry
Aug 23, 2012 04:09 AM|Metalore|LINK
Here's an interesting question, hopefully someone can provide some clarity for me!
I wrote an application which performs a lot of calculations. The idea in a nutshell is to take any number of double values, say 200 for this example, and find every combination of those 200 double values up to a maximum of 4 which total another user defined
i.e. Here's 200 numbers; 1, 2, 3....200. Give me every combination from these numbers that total 400.
Anyhow. I ran this application against my work machine - i5 on Win XP 32bit, 4GB Ram, VS 2010 and it took 428 seconds to complete. I ran the same code on my home (faster) machine - i7 overclocked to 4GHz, 6GB RAM @ 1600MHz, Windows 7 x64, VS 2010 and it
took 490 seconds to complete, which I can't understand!!
Can anyone suggest why this is? Anything to do with 4 cores on work machine vs 8 cores on my home machine? The i5 is not overclocked. Do you need to rewrite .NET code to utilise multiple cores?
Thanks in advance
Aug 23, 2012 05:52 AM|Ken Tucker|LINK
take a look at the tpl. it will allow you to do multiple caculations at the same time
Aug 23, 2012 10:01 AM|Ruchira|LINK
Do you need to rewrite .NET code to utilise multiple cores?
No. I don't think so.
Anyhow. I ran this application against my work machine - i5 on Win XP 32bit, 4GB Ram, VS 2010 and it took 428 seconds to complete. I ran the same code on my home (faster) machine - i7 overclocked to 4GHz, 6GB RAM @ 1600MHz, Windows 7 x64, VS 2010 and it took
490 seconds to complete, which I can't understand!!
Well, hardware and OS isn't the only factor which determine the speed of the website in a server. It can depend on the other applications which are running on your machine. If you are using high memory and CPU consuming processes, it's possible that your
website runs slow in the server.
Please 'Mark as Answer' if this post helps you
Aug 23, 2012 11:01 AM|gerrylowry|LINK
AFAIK, there are different versions of i7, i5, i3 ...
here a just a few possibilities (guesses) ...
-- your i5 at work could be faster than your i7 at home (not likely)
-- overclocking your i7 might cause it to be slower for some types of operations
-- cache on your CPUs could be a factor
-- win XP may be faster than win 7 because win 7 is running more processes
-- different versions of the .NET Framework
a few thing you might choose to look at:
-- open Windows Task Manager on both computers and enable "Show processes from all users".
-- on the Processes tab, View, Select Columns... to display the Select Process Page Columns dialog ... select columns like
Page Faults, Base Priority, Threads,
I/O Read Bytes, I/O Write Bytes, et cetera ... i.e., select those columns that will enable you to compare foreground and background activity.
-- when your tests are running, click the CPU column to order
Image Name by highest to lowest CPU % consumed; you can do this for other columns too, like
-- also from the Performance tab, you can launch the Resource Monitor... which will enable you to watch even more activities
BTW, it's possible you do not have 4 and 8 cores ...
Start, All Programs, Accessories, System, System Information will show you what you have under
System Summary, Processor ... for example, my i3 has
2 cores and 4 Logical Processors.