Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to test speed of opening web-based form?
Message
From
07/07/2006 10:18:01
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 1.1
Miscellaneous
Thread ID:
01134407
Message ID:
01134430
Views:
13
>I would like to test the difference in speed it takes to open a web page when Text property of ASP:Label is hard-coded vs. when the Text is assigned in Page_load method from the values set in the web.config file.
>
>Where would you suggest to place the variables to store the "begin time" and "end time"? What is the functions in .NET equivalent to seconds() in VFP?

I do it all in the global.asax file. Basically, my framework contains a BeginRequest() and a EndRequest() methods. The code, in regards to that, in the global.asax file looks like this:
    Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
        LXFramework.oRequest = Request
        LXFramework.oResponse = Response
        LXFramework.oServer = Server
        LXFramework.BeginRequest()
    End Sub
    
    Sub Application_EndRequest(ByVal sender As Object, ByVal e As EventArgs)
        LXFramework.oResponse.Write(LXFramework.GetJavascriptMessage)
        LXFramework.EndRequest()
    End Sub
LXFramework is an object that is created in global.asax in order to allow me a reference to the framework.

The framework contains a property nDateNow which is initialize in BeginRequest() as follow:
            nDateNow = Date.Now.Ticks
Then, in EndRequest(), I have something like this:
            Dim lnDateNow As Double = Date.Now.Ticks
            Dim lnElapse As Double
            lnElapse = ((lnDateNow - nDateNow) / 10000000)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform