How do you measure the size of a page delivered to the browser (and the Viewstate)

  • Thread starter Thread starter Joe Fallon
  • Start date Start date
J

Joe Fallon

Is there a good way to measure the size of a page delivered to the browser?
Also, how do measure the size of Viewstate?

I am just using View Source, saving the text file and looking at the number
of kb in the Properties of the file.
Then I delete everything but the viewstate and measue it the same way.

1. Is it accurate?
2. Is there a better way? (I want to measure over 100 pages.)
 
Turn Tracing on. The trace will actually tell you the size of the ViewState
and even how much the individual controls take up. There are add-ins that
will watch the http flow that can tell you how many bites are transferred
for a specific action, which gives an excellent real view of what's going
on. I think one of them is for IE and called iewatch and is at
www.iewatch.com.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
its accurate (doesn't include headers though). firefox is easier.

-- bruce (sqlwork.com)
 
Bruce Barker said:
its accurate (doesn't include headers though). firefox is easier.

-- bruce (sqlwork.com)

It's not accurate if you include images, stylesheets, videos, et cetera.
When you measure it that way, all you are measuring is the html of the
single page that is being received.

To really view the # of bytes, you'll need an external tool, or addin, that
would do this. Ethereal is one that comes to mind that shows you exactly,
byte-to-byte of what is being sent and received between the two machines.

Mythran
 
Back
Top