-----Original Message-----
From: Michel Vuijlsteke 
Sent: Thursday, June 22, 2000 11:01 AM
To: '[EMAIL PROTECTED]'
Subject: Re: CFX execution time


Erm, well, that's what I do:

x, y are input parameters. z, status are output parameters, and iter is the
number of iterations requested.

<li><b>Parameters entered</b>: <cfoutput>x=#x#, y=#y#</cfoutput>
<li><b>Returned data</b>: 
        <cfset tt=now()>
        <cfloop from="1" to="#iter#" index="t">
                <cfx_liz x="#x#" y="#y#" z="" status="">
        </cfloop>
        <cfset uu=datediff("s",tt,now())>
        <cfoutput>z=#z#, status=<font color="<cfif status EQ
"OK">339933<cfelse>ff0000</cfif>"><b>#status#</b></font></cfoutput>
<li><b>Time taken</b>: <cfoutput>#uu# s (=#evaluate(uu/iter)#
s/iter)</cfoutput>

If I have this execute 100 times (fo a simple cfx that multiplies two
numbers) I get an average exec time of 2.3 seconds per iteration.

Michel


> -----Original Message-----
> From: Neil H. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 21, 2000 7:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: CFX execution time
> 
> 
> I used to do a make shift execution time for some pseudo 
> webtrends logging.
> I would set a time in the application.cfm and set a time in 
> onendrequest and
> compare the two.  It would have a small margin of error, but not much.
> 
> Thanks,
> 
> Neil
> 
> ----- Original Message -----
> From: "Michel Vuijlsteke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 21, 2000 11:21 AM
> Subject: CFX execution time
> 
> 
> > Hello.
> >
> > I have Delphi-built cfx that takes 2 integers and returns them to me
> > multiplied with a status code.
> >
> > Is it normal for a simple cfx like that to take more than 2 
> seconds to
> > process?
> >
> > Thing is, a more complex cfx which does a complex 
> calculation involving a
> > third-party dll and binary files holding data takes approx. 
> the same time.
> >
> > Is there really an almost 2 s overhead for cfx tags? All 
> this in NT4, CF
> > 4.01, 512 Mb RAM, with no significant load on the machine 
> and using the
> > standard delphi framework as described in the Forta book.
> >
> > Michel Vuijlsteke
> > Netpoint NV
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to