Right on...

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-----Original Message-----
From: Russ Michaels [mailto:[email protected]] 
Sent: Sunday, November 07, 2010 3:53 PM
To: cf-talk
Subject: RE: CF (8.0.0) performance vs PHP (5)


It must do as it requires createObject(java) to be enabled and the java
class loader.

Russ

-----Original Message-----
From: Mark A. Kruger [mailto:[email protected]] 
Sent: 07 November 2010 21:46
To: cf-talk
Subject: RE: CF (8.0.0) performance vs PHP (5)


John,

Hey.... keep in mind that cfdump is a debug/development tag. It's not
designed to perform at all under load. Under the hood I suspect it uses java
reflection classes.

-mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-----Original Message-----
From: John M Bliss [mailto:[email protected]] 
Sent: Sunday, November 07, 2010 11:41 AM
To: cf-talk
Subject: Re: CF (8.0.0) performance vs PHP (5)


> Moreover what was the code you used. Until we see it for all we know its a
very biased test towards PHP, CF or HTML.

CF code I used was included in my post.  HTML was rendered CF -> view source
-> save as HTML.  I don't do PHP.


On Sun, Nov 7, 2010 at 11:09 AM, Larry Lyons <[email protected]> wrote:

>
> Unless you're testing this under a significant load, such as using jMeter
> etc., this test is essentially meaningless. Loops over thousands or simple
> page loads do not mean anything. I'd look at a more real world test, make
> sure the HTML is exactly the same, structure the code to be similar etc.
>
> Moreover what was the code you used. Until we see it for all we know its a
> very biased test towards PHP, CF or HTML.
>
> >For giggles, I just tried this on my box and got:
> >
> >HTML      33 milliseconds (static DataTime stamp and no queries to DB)
> >CF      2910 milliseconds (cleared template cache and newly restarted CF
> >service)
> >CF      707 milliseconds (after above run)
> >
> >And here's the code I tested.  NOTE: only needed two cfdumps to get to
50K
> >page size:
> >
> ><cfset count = 10>
> >
> ><cfoutput>#Now()#</cfoutput>
> >
> ><cfquery name="Q_GetData" datasource="thedatasource">
> >select top #count# * from table1
> ></cfquery>
> >
> ><cfdump var="#Q_GetData#">
> >
> ><cfquery name="Q_GetData" datasource="thedatasource">
> >select top #count# * from table2
> ></cfquery>
> >
> ><cfdump var="#Q_GetData#">
> >
> ><cfquery name="Q_GetData" datasource="thedatasource">
> >select top #count# * from table3
> ></cfquery>
> >
> ><cfquery name="Q_GetData" datasource="thedatasource">
> >select top #count# * from table4
> ></cfquery>
> >
> ><cfquery name="Q_GetData" datasource="thedatasource">
> >select top #count# * from table5
> ></cfquery>
> >
> >
> >
> >>
>
> 







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338931
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to