My revised loop to 10 mil

<cfsetting enablecfoutputonly=yes/>
<cfset timer = getTickCount()/>
<cfloop index=i from=1 to=10000000>
</cfloop>
<cfoutput><br>#numberFormat(i,
"999,999,999,999,999")#|#numberFormat((getTickCount()-timer)/1000,
"999,999.099")#</cfoutput>
<cfsetting enablecfoutputonly=yes/>

Ran for a while & spiked JRun cpu to 50%

Had a lot of other stuff running -- VurtualPC/WinXP real-time stock
streamer, Sybase_ASE db server, MySQL db server, JRun, CFMX61, iTunes,
LimeWire, BBEdit IDE, Word Mac, Classic Environment, Console Log viewer
-- Apache Activity log, Apache, Mail Client, wmp audio streamer,
several browsers & windows, Activity viewer, and a quasi-real time
stock streamer that hits cf every 2-3 seconds..

Actually, this loop exercise has been quite informative:

1) the <cfsetting enablecfoutputonly=yes/> is mandatory
2) while JRun spiked cpu to 50%, other CFMX hits ran only slightly
slower
3) firefox hung several times while displaying the 1,000,000,000
original loop counts, but finished  OK
4) the only crashes were word Mac, and VirtualPC

Here's my output:

10,000,001| 1,543.074

I think I will try this later when I can quiesce all other activity

Anyone up to calculating pi ti n+1 decimals

HTH

Dick
On Apr 16, 2004, at 9:25 AM, Dick Applebaum wrote:

> My loop
>
>  <cfloop index=i from=1 to=1000000>
>  ��� <cfoutput><br>#i#</cfoutput>
>  </cfloop>
>
>  ran it till completion -- then tied up the browser with 20% CPU and
>  about .9 Gig Virtual mem
>
>  ran almost as slow as a RIA ---
>
>  --- or, as the doe said, when she came out of the forest:��"That's the
>  last time I'll do that for 2 bucks".
>
>  HTH
>
>  Dick
>
>  On Apr 16, 2004, at 9:04 AM, Dick Applebaum wrote:
>
>  > On Apr 16, 2004, at 8:42 AM, Ray Champagne wrote:
>  >
>  >��> Well, I just did a quick one (index loop) that tried to loop 10
>  > million
>  >��>��times, and it looks like it consistently stops at 36,799 and
> goes
>  > no
>  >��>��further.��That help?
>  >��>
>  >��>��<cfloop index="i" from="1" to="10,000,000" step="1">
>  >��>��<cfoutput>#i#<br></cfoutput>
>  >��>��</cfloop>
>  >��>
>  >��>��Ray
>  >��>
>  >��>
>  >
>  >��Odd I am at 340,420 and counting (firefox is still downloading
> data)
>  >
>  >��What happened when it stopped - maybe it's your browser??
>  >
>  >��HTH
>  >
>  >��Dick
>  >
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to