Minor revisions to the script:
<cfset starttime = getTickCount()>
<cfloop index="x" from="1" to="4000">
<cftry><cfset y = x>
<cfcatch></cfcatch></cftry></cfloop>
<cfset ms = getTickCount()-starttime>
<cfset normal = ms>
<cfoutput>
<div>
normal time = #ms# milliseconds
</div>
</cfoutput>
<cfset starttime = getTickCount()>
<cfloop index="x" from="1" to="4000">
<cftry><cfset y = x/0>
<cfcatch></cfcatch></cftry></cfloop>
<cfset ms = getTickCount()-starttime>
<cfoutput>
<div>
error time = #ms# milliseconds
</div>
</cfoutput>
<cfset m = ms / normal>
<cfoutput><div>increase = x#int(m)#</div></cfoutput>
I ran this on our development server and got these results:
normal time = 15 milliseconds
error time = 20813 milliseconds
increase = x1387
Although I think we have robust error information enabled on this
server -- if robust error info is disabled I don't think the gap is
nearly as wide.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212198
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54