473,602 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ 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 1292
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*****@MSDNne ws.com> wrote in message
news:1F******** *************** ***********@mic rosoft.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*****@MSDNne ws.com> wrote in message
news:1F******** *************** ***********@mic rosoft.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
8518
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 of 32 bit. I made this stupid trial code: --------------------------------------------- FILE *fout;
31
6605
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 variable becomes 364 and the other one becomes 365. Does anyone have any insight to what the problem is? Thanks in advance. Bjørn
6
9399
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 sender, PaintEventArgs e) { Graphics g = e.Graphics;
1
2511
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 was: Import Namespace="System.Web.Mail" Dim aa as new StringBuilder(600010) Dim i as Integer
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 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.
33
4659
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 of articles I read from different experts and programmers tell me that their "gut feelings" for using stringBuilder instead of string concatenation is when the number of string concatunation is more then N ( N varies between 3 to max 15 from...
19
4627
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 FileSearch in win98 to fill an array with filenames with no problems since about 1998. From the 97 Help: (The Filename Property of the FileSearch object) --------------------------
1
2970
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 the second is a custom VB6 COM component. So I was reading about AspCompat=true and it seemed like it would be a good fit for our app. From what I can tell both of the COM components that we are using are STA and we are creating the components in...
5
1500
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 an instance of an Old-Style class without defining a __contains__ but instead define a __getitem__ method in which we raise KeyError. Next we repeatedly use the 'in' operator to test to see whether something, a string, an int, etc is an attribute...
0
7993
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8054
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6730
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5867
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2418
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1254
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.