I don't understand, how can cfscript be faster if it takes 1563
milliseconds longer than the tag based loop?


-----Original Message-----
From: Steve Onnis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 2 July 2003 10:42 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Cf Programming Style


Here is a simple one I just did


<cfscript>
        for (i = 1; i LTE 1000000; i=i+1)
                {}
</cfscript>
2047 ms


<cfloop from="1" to="1000000" index="i">

</cfloop>
484 ms


You can see just from that that CFSCRIPT is faster

This is on CFMX SP3 on Win2K Server SP3

Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gary Menzel
Sent: Wednesday, July 02, 2003 10:34 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Cf Programming Style


> Has anyone bench tested this? :)

Not that I know of, Nick - maybe some stuff done in CF Developers
Journal.

However, you know what release are like, all the benchmarks may change
with the next upgrade.

>From what I have read, I am lead to believe that the tag-based elements
that equate to script-based elements result in the same Java code being
generated.

Any benchmark testing would have to be broken down into two parts - the
compilation part and the execution part.  My assumption being that the
execution parts will be identical for mappable items between the two
techniques on a CFMX platform.


Gary Menzel
IT Operations Brisbane -+- ABN AMRO Morgans Limited
Level 29, 123 Eagle Street BRISBANE QLD 4000
PH: 07 333 44 828  FX:  07 3834 0828
************************************************************************
****
If this communication is not intended for you and you are not an
authorised
recipient of this email you are prohibited by law from dealing with or
relying on the email or any file attachments. This prohibition includes
reading, printing, copying, re-transmitting, disseminating, storing or
in
any other way dealing or acting in reliance on the information.  If you
have received this email in error, we request you contact ABN AMRO
Morgans
Limited immediately by returning the email to [EMAIL PROTECTED]
and destroy the original. We will refund any reasonable costs associated
with notifying ABN AMRO Morgans. This email is confidential and may
contain
privileged client information. ABN AMRO Morgans has taken reasonable
steps
to ensure the accuracy and integrity of all its communications,
including
electronic communications, but accepts no liability for materials
transmitted. Materials may also be transmitted without the knowledge of
ABN
AMRO Morgans.  ABN AMRO Morgans Limited its directors and employees do
not
accept liability for the results of any actions taken or not on the
basis
of the information in this report. ABN AMRO Morgans Limited and its
associates hold or may hold securities in the companies/trusts mentioned
herein.  Any recommendation is made on the basis of our research of the
investment and may not suit the specific requirements of clients.
Assessments of suitability to an individual's portfolio can only be made
after an examination of the particular client's investments, financial
circumstances and requirements.
************************************************************************
****


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

---------------------------------------------------------------------------- 
This email, together with any attachments, is intended for the named 
recipient(s) only and may contain privileged and confidential information. If 
received in error, please inform the sender as quickly as possible and delete 
this email and any copies from your computer system network.

If not an intended recipient of this email, you must not copy, distribute or 
rely upon it and any form of disclosure, modification, distribution and/or 
publication of this email is prohibited.

Unless stated otherwise, this email represents only the views of the sender and 
not the views of the Queensland Government. 
---------------------------------------------------------------------------- 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to