On 13/01/07, <b class="gmail_sendername">Bret Pettichord</b> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Would it be possible for you to provide code and output that are synced up with each other?<br><br>Bret<br></blockquote></div><br>Sure thing.&nbsp; Rather than include everything, here are some relevant bits:<br>----<br>Aside: filename written to from the setup method:
<br>&nbsp; filename1 = &#39;site_map_output&#39;+ f_count +&#39;.csv&#39;<br>&nbsp; $f =&nbsp; File.new(filename1,&nbsp; &quot;w&quot;)<br>&nbsp; $f.puts &quot;#{header_info}&quot;<br>----<br>def walk_Main_Menu<br><br>&nbsp; $f.puts &#39;&quot;3. Main Pages:&quot;,&quot;Page Size (bytes)&quot;,&quot;Page Load Time 1 (s)&quot;,&quot;Page Load Time 2 (s)&quot;&#39;
<br>&nbsp;&nbsp;&nbsp; &nbsp; # set the page_name array..<br><br>&nbsp;&nbsp;&nbsp; &nbsp; # Log in, update password, and go to the Home page<br>&nbsp;&nbsp;&nbsp; &nbsp; secondary_page_timer = Time.now<br>&nbsp;&nbsp;&nbsp; &nbsp; $ie.button(:name, /UpdateSettingsButton/).click<br>&nbsp;&nbsp;&nbsp; &nbsp; record_measurement( page_name[0], secondary_page_timer )
<br><br>&nbsp;&nbsp;&nbsp; &nbsp; # go on to the next page...<br>----<br>&nbsp; def record_measurement( page_title, secondary_page_start_time )<br>&nbsp;&nbsp;&nbsp; &nbsp; $f.puts page_title&nbsp; + &#39;,&#39; + $ie.html.length.to_s + &#39;,&#39; + $ie.down_load_time.to_s + &#39;,&#39; + (
Time.now - secondary_page_start_time).to_s<br>&nbsp; end<br>----<br><br>=&gt; And the output file from a script run contains numbers like the following:<br><br>&quot;3. Main Pages:&quot;,&quot;Page Size (bytes)&quot;,&quot;Page Load Time (s)&quot;,&quot;2 Page Load Time (s)&quot;
<br>&quot;a) Home&quot;,15210,0.015,1.075<br>...<br>&quot;k) Personal Settings&quot;,33639,0.872,1.06<br>...<br>&quot;m) Contact Support&quot;,15106,0.373,0.514<br><br>----<br><br>(BTW, I&#39;m still removing the global variables as I come across them, so there are still a handful left.&nbsp; The script may not be the prettiest from a programming perspective, but it&#39;s a small site and the script works, so it&#39;s good enough for me for now.)
<br><br>I think the Home page might be cached in the browser and so the &quot;download&quot; time is negligible.&nbsp; The server response time navigating between the pages still takes about a second though.&nbsp; So I&#39;m wondering if IE is making a distinction between how long it takes to get the page versus how long it takes to finish what it was doing with the last page visited.
<br><br>Dunno.&nbsp; I&#39;ll try changing up the order in which the pages are loaded and clearing the browser cache to see if it makes a difference, but the ~300 ms difference between the timers seems to be consistent.&nbsp; (There are other pages with a bigger time difference than that observed with the Home page!)
<br><br>Paul C.<br><br>