strange information from asp.net trace / getting performance information using WebRequest and Stream

Z

z. f.

Hi,

i have asp.net vb.net wep application.
i try to investigate performance issue.
so first i built a vb.net windows application that makes http requests to my pages and show me the time taken to receive the page and it's size.
the windows app uses a WebRequest and StreamReader to receive the http request.
the strange information is for a page that took to receive about 218 ms
i enabled the trace in the web.config of my pages, and trace logged and watched through trace.axd.
when i examine the trace information i have this table of information:


Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000297 0.000297
aspx.page Begin PreRender 0.000911 0.000615
aspx.page End PreRender 0.153830 0.152919
aspx.page Begin SaveViewState 0.171056 0.017225
aspx.page End SaveViewState 0.171581 0.000526
aspx.page Begin Render 0.171640 0.000059
aspx.page End Render 2.629846 2.458206


how can it be that the end render took 2.4 seconds while the client got the page in 218ms?

what is the problem here.
i will recheck my information with a third party tool.
the 218ms if for a webRequest.GetResponse to return.
i guess is that the function returns after the asynchronous request returns.
so what might be the cause to the time differencets?

i will point that extra time is occur for the reader.ReadToEnd() function.
if the response is chunked (http transfer-encoding:chunked) or if the response if flushed several time, should this cause the reader.ReadToEnd to perform extra time, isn't the data already there? might the webRequest.GetResponse returned before all the request was received?

TIA, z.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,834
Latest member
BuyCannaLabsCBD

Latest Threads

Top