thanks Tom -----Original Message----- From: Tom Shearer [mailto:[EMAIL PROTECTED]] Sent: 27 August 2002 11:58 To: [EMAIL PROTECTED] Subject: [ cf-dev ] Fw: [ cfug-dev ] Bandwidth Testing
there you go peter.... ----- Original Message ----- From: "Peter Harrison" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 28, 2001 5:02 PM Subject: RE: [ cfug-dev ] Bandwidth Testing > CF does indeed deliver the content after it has finished processing the > entire file, and I am counting on that in my code. What my code does is > create a large page and the time stamp is written just before the page is > released to the web server ready for actual page download by the web > browser. Once the page finishes being downloaded, the browser reads the > <body onload="..."> tag at the end which causes the browser to redirect > itself to the same page but passes some parameters. > > The second time this page is called it then compares the current time to the > time sent in the URL, giving it a difference of time. This is used to > represent the time it takes to download the page from the server, and not > the time it takes to go through the loop. > > - Peter > > -----Original Message----- > From: Russ Michaels [mailto:[EMAIL PROTECTED]] > Sent: 28 March 2001 16:38 > To: [EMAIL PROTECTED] > Subject: RE: [ cfug-dev ] Bandwidth Testing > > > sure that is just gonna tell you how long Coldfusion takes to process the > loop. > CF delivers content to the client in one go, not as a process. > > > At 14:57 28/03/2001 +0100, you wrote: > >This is how I'd do this (just double check my maths)... > > > >file: testbandwidth1.cfm > ><cf_testbandwidth2> > > <cfif url.action is "start"> > > <!--- make a whole lot of page content to download ---> > > Your bandwidth is being tested, please wait...<br> > > <cfloop index="cnt" from="1" to="100000"> > > <!-- the quick brown fox jumps over the lazy dog > --> > > </cfloop> > > Bandwidth test nearly completed... > > <cfelse> > > <!--- calculate Kbps ---> > > <cfoutput> > > <cfset elapsedTimeSecs = (now() - url.starttime) * > >24 * 60 * 60> > > <cfset kbps = ((url.size * 8) / 1024) / > >elapsedTimeSecs> > > Bandwidth test complete:<br> > > Elapsed time in seconds: #elapsedTimeSecs#<br> > > #kbps# Kbps > > </cfoutput> > > </cfif> > ></cf_testbandwidth2> > > > >file: testbandwidth2.cfm > ><cfparam name="url.action" default="start"> > ><cfif thisTag.ExecutionMode is "end"> > > <cfif url.action is "start"> > > <cfoutput> > > <body onload="javascript: > >location='#cgi.script_name#?action=show&size=#len(thisTag.GeneratedContent) > # > >&starttime=#urlencodedformat(now())#';"> > > </cfoutput> > > </cfif> > ></cfif> > > > >(yes, I am bored) > > > >-----Original Message----- > >From: Chris Thomas (Esense Limited) [mailto:[EMAIL PROTECTED]] > >Sent: 28 March 2001 14:32 > >To: '[EMAIL PROTECTED]' > >Subject: [ cfug-dev ] Bandwidth Testing > > > > > > > >Does anyone know of any custom tags that allow you to test the bandwidth > >that a user has. > > > >Presumably it wouldn't be too hard to write one, make a time stamp, send a > >file of a known size to the user, take another time stamp. Then its easy to > >calculate the bandwidth. The only thing I'm not sure on, is how to know > when > >the user has finished receiving the file? > > > >Regards, > > > >Chris Thomas. > > > >-- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >For human help, e-mail: [EMAIL PROTECTED] > > > > > >-- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >For human help, e-mail: [EMAIL PROTECTED] > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
