473,414 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Performance on C2D?

mk
Hi. I was hoping someone could explain weird performance anomaly. I ran a
small test to compare a new X6800 Core 2 Duo build against a three year old
P4EE:
(Both machines running VS2005)

DateTime dt = DateTime.Now;
string s = String.Empty;
for (int i = 0; i < 9999; i++)
{
s += new string('x', 1000);
}
TimeSpan ts = DateTime.Now - dt;
double l = ts.TotalSeconds;

As you can see its very basic, meant to push memory and cpu activities. On
the older PC this evalutes in approximately 200 seconds. On the newer one,
it takes between 800 and 850 seconds.

Super PI (32m) takes 42m01s on the older machine, and 18m13s on the new one.
The new machine should be three to four times faster in general ops (super
pi is single threaded). I'm assuming that this is an anomaly in .net, which
is unfortunate as the new machine is a development build. Any ideas would be
greatly appreciated.

Thanks

mk

Nov 26 '06 #1
3 1146
mk
Running a new test with just 999 cycles the new machine took 1.06 seconds,
the old machine took 2.22 seconds.

"mk" wrote:
Hi. I was hoping someone could explain weird performance anomaly. I ran a
small test to compare a new X6800 Core 2 Duo build against a three year old
P4EE:
(Both machines running VS2005)

DateTime dt = DateTime.Now;
string s = String.Empty;
for (int i = 0; i < 9999; i++)
{
s += new string('x', 1000);
}
TimeSpan ts = DateTime.Now - dt;
double l = ts.TotalSeconds;

As you can see its very basic, meant to push memory and cpu activities. On
the older PC this evalutes in approximately 200 seconds. On the newer one,
it takes between 800 and 850 seconds.

Super PI (32m) takes 42m01s on the older machine, and 18m13s on the new one.
The new machine should be three to four times faster in general ops (super
pi is single threaded). I'm assuming that this is an anomaly in .net, which
is unfortunate as the new machine is a development build. Any ideas would be
greatly appreciated.

Thanks

mk
Nov 26 '06 #2
This doesn't answer your question but why don't you use the
System.Diagnostics.Stopwatch?

Gabriel

"mk" <mk@discussions.microsoft.comwrote in message
news:58**********************************@microsof t.com...
Hi. I was hoping someone could explain weird performance anomaly. I ran
a
small test to compare a new X6800 Core 2 Duo build against a three year
old
P4EE:
(Both machines running VS2005)

DateTime dt = DateTime.Now;
string s = String.Empty;
for (int i = 0; i < 9999; i++)
{
s += new string('x', 1000);
}
TimeSpan ts = DateTime.Now - dt;
double l = ts.TotalSeconds;

As you can see its very basic, meant to push memory and cpu activities.
On
the older PC this evalutes in approximately 200 seconds. On the newer
one,
it takes between 800 and 850 seconds.

Super PI (32m) takes 42m01s on the older machine, and 18m13s on the new
one.
The new machine should be three to four times faster in general ops (super
pi is single threaded). I'm assuming that this is an anomaly in .net,
which
is unfortunate as the new machine is a development build. Any ideas would
be
greatly appreciated.

Thanks

mk
Nov 26 '06 #3
mk
I don't think the problem is with .Net, it appears to be windows-based.
Executing memtest on the old machine works just fine, on my new machine
memtest reports that windows will not allow large contiguous allocation of
memory to a single machine - this forces me to run two instanes of memtest.
In itself this is not a problem, but it shows some underlying issues.
Does anyone know if this is due to installing xp pro with sp2, rather than
xp pro and then sp2 afterwards?

"Gabriel Lozano-Morán" wrote:
This doesn't answer your question but why don't you use the
System.Diagnostics.Stopwatch?

Gabriel

"mk" <mk@discussions.microsoft.comwrote in message
news:58**********************************@microsof t.com...
Hi. I was hoping someone could explain weird performance anomaly. I ran
a
small test to compare a new X6800 Core 2 Duo build against a three year
old
P4EE:
(Both machines running VS2005)

DateTime dt = DateTime.Now;
string s = String.Empty;
for (int i = 0; i < 9999; i++)
{
s += new string('x', 1000);
}
TimeSpan ts = DateTime.Now - dt;
double l = ts.TotalSeconds;

As you can see its very basic, meant to push memory and cpu activities.
On
the older PC this evalutes in approximately 200 seconds. On the newer
one,
it takes between 800 and 850 seconds.

Super PI (32m) takes 42m01s on the older machine, and 18m13s on the new
one.
The new machine should be three to four times faster in general ops (super
pi is single threaded). I'm assuming that this is an anomaly in .net,
which
is unfortunate as the new machine is a development build. Any ideas would
be
greatly appreciated.

Thanks

mk

Nov 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Brian Patterson | last post by:
I have noticed in the book of words that hasattr works by calling getattr and raising an exception if no such attribute exists. If I need the value in any case, am I better off using getattr...
12
by: Fred | last post by:
Has anyone a link or any information comparing c and c++ as far as execution speed is concerned? Signal Processing algorithms would be welcome... Thanks Fred
12
by: serge | last post by:
I have an SP that is big, huge, 700-800 lines. I am not an expert but I need to figure out every possible way that I can improve the performance speed of this SP. In the next couple of weeks I...
6
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of...
5
by: Scott | last post by:
I have a customer that had developed an Access97 application to track their business information. The application grew significantly and they used the Upsizing Wizard to move the tables to SQL...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
7
by: Michael D. Ober | last post by:
When calling Enqueue, the internal array may need to be reallocated. My question is by how much? In the old MFC array classes, you could tell MFC how many additional elements to add to the array...
1
by: jvn | last post by:
I am experiencing a particular problem with performance counters. I have created a set of classes, that uses System.Diagnostics.PerformanceCounter to increment custom performance counters (using...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.