473,480 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Strange Results testing .Net vs. COM vs. Classic ASP ...

Hello everyone!

I have been running some tests of a component that simply returns an image
path based upon some logic and a simple select statement to an Access db. The
component had to be available to Classic ASP apps and ASP.Net apps from a
central location. Performance is a great concern.

In developing this solution I created three seperate mini-apps to try to
ascertain what the best approach could be.

The Three mini-apps:
1) A classic ASP page using an include file encapsulating component logic.
2) A ASP.Net page referencing a .NETclass that encapsulates component logic.
3) A classic ASP Page creating a COM object from a A COM interface created
around a copy of the class referenced in app #2.

When testing processing times I was surprised to see that the Classic ASP
apps 1 & 3 had roughly the same results while the ASP.Net app (#2)
refrencing the assembly in the GAC took almost twice as long to doexactly the
same job.

Here is logic for component:
Create Class with no parameters (or call function for include file)
Set two parameters (write only properties)
Call MakeImage Method (This method creates a connection to an access DB
using a referenced assembly) (also note the include file contains all db
access code)
Destroy object

Why does the Assembly built with COM interface out perform the norrmal .NET
assembly when they are virtually the same?

Any ideas?

Thanks,
RichDef


Jul 21 '05 #1
2 1281
Did this happen after you just recompiled the app? Because the first hit
takes a while. After that, it is the normal speed.

"RichDef" <Ri*****@MSDNnews.com> wrote in message
news:1F**********************************@microsof t.com...
Hello everyone!

I have been running some tests of a component that simply returns an image
path based upon some logic and a simple select statement to an Access db.
The
component had to be available to Classic ASP apps and ASP.Net apps from a
central location. Performance is a great concern.

In developing this solution I created three seperate mini-apps to try to
ascertain what the best approach could be.

The Three mini-apps:
1) A classic ASP page using an include file encapsulating component logic.
2) A ASP.Net page referencing a .NETclass that encapsulates component
logic.
3) A classic ASP Page creating a COM object from a A COM interface created
around a copy of the class referenced in app #2.

When testing processing times I was surprised to see that the Classic ASP
apps 1 & 3 had roughly the same results while the ASP.Net app (#2)
refrencing the assembly in the GAC took almost twice as long to doexactly
the
same job.

Here is logic for component:
Create Class with no parameters (or call function for include file)
Set two parameters (write only properties)
Call MakeImage Method (This method creates a connection to an access DB
using a referenced assembly) (also note the include file contains all db
access code)
Destroy object

Why does the Assembly built with COM interface out perform the norrmal
.NET
assembly when they are virtually the same?

Any ideas?

Thanks,
RichDef

Jul 21 '05 #2
I ran each app a number of times after recompiling and the results were the
same - the native .net app took about twice as long to process.

Does the vb script timer() function work the same in vb.net? I'm using the
timer method in each app to determine how long it takes to process the code.

"Marina" wrote:
Did this happen after you just recompiled the app? Because the first hit
takes a while. After that, it is the normal speed.

"RichDef" <Ri*****@MSDNnews.com> wrote in message
news:1F**********************************@microsof t.com...
Hello everyone!

I have been running some tests of a component that simply returns an image
path based upon some logic and a simple select statement to an Access db.
The
component had to be available to Classic ASP apps and ASP.Net apps from a
central location. Performance is a great concern.

In developing this solution I created three seperate mini-apps to try to
ascertain what the best approach could be.

The Three mini-apps:
1) A classic ASP page using an include file encapsulating component logic.
2) A ASP.Net page referencing a .NETclass that encapsulates component
logic.
3) A classic ASP Page creating a COM object from a A COM interface created
around a copy of the class referenced in app #2.

When testing processing times I was surprised to see that the Classic ASP
apps 1 & 3 had roughly the same results while the ASP.Net app (#2)
refrencing the assembly in the GAC took almost twice as long to doexactly
the
same job.

Here is logic for component:
Create Class with no parameters (or call function for include file)
Set two parameters (write only properties)
Call MakeImage Method (This method creates a connection to an access DB
using a referenced assembly) (also note the include file contains all db
access code)
Destroy object

Why does the Assembly built with COM interface out perform the norrmal
.NET
assembly when they are virtually the same?

Any ideas?

Thanks,
RichDef


Jul 21 '05 #3

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

Similar topics

6
8494
by: leonecla | last post by:
Hi everybody, I'm facing a very very strange problem with a very very simple C program... My goal should be to write to a binary file some numbers (integers), each one represented as a sequence...
31
6572
by: Bjørn Augestad | last post by:
Below is a program which converts a double to an integer in two different ways, giving me two different values for the int. The basic expression is 1.0 / (1.0 * 365.0) which should be 365, but one...
6
9383
by: Sam Sungshik Kong | last post by:
Hello! I'm testing Graphics.DrawString and it's very strange. I created an event handler for the form.s Paint event. (There's no other code in the form.) private void Form1_Paint(object...
1
2506
by: Jitesh Sinha | last post by:
Hi, I am running Windows 2003/ IIS 6.0. I was stuck with rather a abnormal behaviour of System.Web.mail class. It was truncating the message body after 3,071 character. The code i was testing...
2
250
by: RichDef | last post by:
Hello everyone! I have been running some tests of a component that simply returns an image path based upon some logic and a simple select statement to an Access db. The component had to be...
33
4632
by: genc_ymeri | last post by:
Hi over there, Propably this subject is discussed over and over several times. I did google it too but I was a little bit surprised what I read on internet when it comes 'when to use what'. Most...
19
4601
by: Alan Carpenter | last post by:
Access 8 on Win98 and WinXP I'm having trouble with wildcards in the .Filename property of the FileSearch Object giving different results on win98 and XP. I've been successfully using...
1
2964
by: Nicholas Palmer | last post by:
Hi all, Got a question about the AspCompat=true page property. First a little background. We have an ASP.NET app that uses two COM components. The first is the Microsoft OWC 11 components and...
5
1486
by: rconradharris | last post by:
A co-worker of mine came across some interesting behavior in the Python interpreter today and I'm hoping someone more knowledgeable in Python internals can explain this to me. First, we create...
0
7041
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7084
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
6929
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
4481
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...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
181
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.