all groups > dotnet interop > october 2006 >
You're in the

dotnet interop

group:

Interop object creation performance


Interop object creation performance John Smith
10/26/2006 4:22:12 PM
dotnet interop: Hello!

I did some performance testing with ADODB interop object creation, and
noticed that interop objects are created much faster on windows applications
than ASP.NET.

I tested it with this function on both platforms:

Private Function CreateObjects() As TimeSpan

Dim rsData As ADODB.Recordset
Dim lPos As Long
Dim dtStart As DateTime = Now

For lPos = 1 To 5000
rsData = New ADODB.Recordset
Next

Return Now - dtStart

End Function


Windows application gives about 1.8 seconds
ASP.NET (on IIS 5.1) application gives about 15.6 seconds

I'm using .NET Framework v2.0.50727

Why is ASP.NET so much slower, and is there anything to do about it?

Re: Interop object creation performance Mattias Sjögren
10/29/2006 9:31:40 PM
John,

Did you set AspCompat=true in your ASP.NET page?


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Re: Interop object creation performance John Smith
10/30/2006 4:13:28 PM
Hi!

That switch doesn't seem to have any affect on the performance.



[quoted text, click to view]

Re: Interop object creation performance Smith John
11/15/2006 5:56:01 AM


[quoted text, click to view]
Re: Interop object creation performance Smith John
11/15/2006 6:03:02 AM
Hi again.

Does anyone have any idea is this around 5ms object creation time normal in
asp.net enviroment? It sounds ridiculously slow. Please only one answer is
needed. Is this normal? Anyone Microsoft.

[quoted text, click to view]
AddThis Social Bookmark Button