that's the very one! :) thanks for that Duncan.
- Peter H. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 27 August 2002 12:01 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Detecting connection speed is this the one? (i've included it as part of a thread, as it has your description too): 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. > Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- "Peter Harrison" <peter.harrison@net To: <[EMAIL PROTECTED]> shift.com> cc: Subject: RE: [ cf-dev ] Detecting connection speed 08/27/02 11:46 AM Please respond to dev I remember doing a bandwidth tester in pure CF last year some time. I've lost the dev mail archive I had though, can anyone else search that far back? - Peter Harrison -----Original Message----- From: Steve Penfold [mailto:[EMAIL PROTECTED]] Sent: 27 August 2002 10:43 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Detecting connection speed thanks for your all suggestions for this chaps regards, Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 23 August 2002 16:51 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Detecting connection speed Here's a lovely little applet that does just that. Given the time it takes to perform the test, I wouldn't expect you could do this at near-automatic speed server side. Good luck in rewriting it in CF! http://www.adslguide.org.uk/tools/speedtest.asp Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- "Steve Penfold" To: <[EMAIL PROTECTED]> <steve@ph-med cc: ia.com> Subject: RE: [ cf-dev ] Detecting connection speed 08/23/02 04:51 PM Please respond to dev Hi chaps, Thanks for the input but I was kinda looking for a method where the server would be doing do the work! Steve -----Original Message----- From: Taz -=TT=- [mailto:[EMAIL PROTECTED]] Sent: 23 August 2002 15:53 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] Detecting connection speed > <a href="slow.cfm">56K Modem or worse/Don't know</a> > <a href="fast.cfm">ISDN/Satellite/ADSL/whatever</a> <a href="grievous.cfm">Cups and String</a> Taz -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002 -- 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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002 -- 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]
