Re: Total Execution Time

2011-07-12 Thread Wil Genovese

That is a depends on question.  

A Good execute time is short enough to keep the average (super impatient) web 
user from giving up and going somewhere else.

For any website I shoot for under 100ms for a single page load.  As traffic 
scales up I may allow up to 500ms before thinking it's time to added resources 
or re-optimize existing resources.



Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Jul 12, 2011, at 11:05 AM, Torrent Girl wrote:

 
 What is a good total execution time to aim for in Coldfusion? Is there a 
 standard benchmark?
 
 Thank you. 
 
 

~|
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:346191
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Russ Michaels

200ms is considered to be slow by CF as default.
I would certainly make 1000ms my absolute maximum and even then there should
be a very good reason a page to even be that slow, such as heavy query that
cannot be avoided or loading content from external sites or something.

Russ

On Tue, Jul 12, 2011 at 6:02 PM, Torrent Girl moniqueb...@gmail.com wrote:


 What is a good total execution time to aim for in Coldfusion? Is there a
 standard benchmark?

 Thank you.

 

~|
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:346192
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Raymond Camden

Don't forget that CF execution time is just one part of the entire
package of things that will impact the time it takes for the user to
see the end result. CF can spit everything out in 1ms, but if you have
other issues, then they will still think your site is slow.


On Tue, Jul 12, 2011 at 12:27 PM, Russ Michaels r...@michaels.me.uk wrote:

200ms is considered to be slow by CF as default.
 I would certainly make 1000ms my absolute maximum and even then there should
 be a very good reason a page to even be that slow, such as heavy query that
 cannot be avoided or loading content from external sites or something.

 Russ

 On Tue, Jul 12, 2011 at 6:02 PM, Torrent Girl moniqueb...@gmail.com wrote:


 What is a good total execution time to aim for in Coldfusion? Is there a
 standard benchmark?

 Thank you.



 

~|
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:346193
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Total Execution Time

2011-07-12 Thread Mark A. Kruger

Depends on the site and application is it data mining? Ecommerce?
Public? Intranet? 

A public site designed for marketing and/or sales should target 50 to
150ms. there may be pages that should be considered separately from
your average - like the shopping cart page that sends transactions to your
gateway for example - it might naturally take 300 or 400 miliseconds because
it has to wait for a response. But internal applications might have a much
higher threshold before you have to worry too much.

-mark


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


-Original Message-
From: Torrent Girl [mailto:moniqueb...@gmail.com] 
Sent: Tuesday, July 12, 2011 11:06 AM
To: cf-talk
Subject: Total Execution Time


What is a good total execution time to aim for in Coldfusion? Is there a
standard benchmark?

Thank you. 



~|
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:346194
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread David McGuigan

0.001 ms

On Tue, Jul 12, 2011 at 11:34 AM, Mark A. Kruger mkru...@cfwebtools.comwrote:


 Depends on the site and application is it data mining? Ecommerce?
 Public? Intranet?

 A public site designed for marketing and/or sales should target 50 to
 150ms. there may be pages that should be considered separately from
 your average - like the shopping cart page that sends transactions to your
 gateway for example - it might naturally take 300 or 400 miliseconds
 because
 it has to wait for a response. But internal applications might have a much
 higher threshold before you have to worry too much.

 -mark


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


 -Original Message-
 From: Torrent Girl [mailto:moniqueb...@gmail.com]
 Sent: Tuesday, July 12, 2011 11:06 AM
 To: cf-talk
 Subject: Total Execution Time


 What is a good total execution time to aim for in Coldfusion? Is there a
 standard benchmark?

 Thank you.



 

~|
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:346195
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Torrent Girl

 What is a good total execution time to aim for in Coldfusion? Is there 
 a standard benchmark?
 
 Thank you. 


Thanks All. I am converting ASP code to CF 9 and have someone comparing the 
page load results to the ASP server and they are supposedly getting faster 
times on the ASP server.

I told her that I develop my pages within a certain benchmark (the pages she 
tested have a 45 MS total execution time) and I am not understanding why we are 
comparing the CF and ASP servers.

Would any of you recommend this? It doesn't make sense to me. 

~|
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:346196
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Wil Genovese

Well, converting a site from one platform to another may not be very 
comparable.  At least not until the final product is done and optimized.  There 
are a lot of factors to execution times including many factors outside of 
ColdFusion. Database, OS, JVM Tuning, firewall(s), proxies, IIS/Apache and so 
on.  





Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Jul 12, 2011, at 12:54 PM, Torrent Girl wrote:

 
 What is a good total execution time to aim for in Coldfusion? Is there 
 a standard benchmark?
 
 Thank you. 
 
 
 Thanks All. I am converting ASP code to CF 9 and have someone comparing the 
 page load results to the ASP server and they are supposedly getting faster 
 times on the ASP server.
 
 I told her that I develop my pages within a certain benchmark (the pages she 
 tested have a 45 MS total execution time) and I am not understanding why we 
 are comparing the CF and ASP servers.
 
 Would any of you recommend this? It doesn't make sense to me. 
 
 

~|
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:346197
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Bryan Stevenson

Well it seems normal for a client to test what is being replaced (ASP)
with what's replacing it (CF) to make sure they aren't heading
backwards.

Perhaps I missed the point of your question? ;-)

Cheers

On Tue, 2011-07-12 at 13:54 -0400, Torrent Girl wrote:

  What is a good total execution time to aim for in Coldfusion? Is there 
  a standard benchmark?
  
  Thank you. 
 
 
 Thanks All. I am converting ASP code to CF 9 and have someone comparing the 
 page load results to the ASP server and they are supposedly getting faster 
 times on the ASP server.
 
 I told her that I develop my pages within a certain benchmark (the pages she 
 tested have a 45 MS total execution time) and I am not understanding why we 
 are comparing the CF and ASP servers.
 
 Would any of you recommend this? It doesn't make sense to me. 
 
 

~|
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:346198
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Total Execution Time

2011-07-12 Thread Mark A. Kruger

Remember that the first run of a CF page compiles the page to java byte
code. For comparison you should only be testing subsequent loads of the page
(after the compile). It's also useful to explain that compiling process to
the user. :)

-mark


-Original Message-
From: Wil Genovese [mailto:jugg...@trunkful.com] 
Sent: Tuesday, July 12, 2011 1:02 PM
To: cf-talk
Subject: Re: Total Execution Time


Well, converting a site from one platform to another may not be very
comparable.  At least not until the final product is done and optimized.
There are a lot of factors to execution times including many factors outside
of ColdFusion. Database, OS, JVM Tuning, firewall(s), proxies, IIS/Apache
and so on.  





Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Jul 12, 2011, at 12:54 PM, Torrent Girl wrote:

 
 What is a good total execution time to aim for in Coldfusion? Is there 
 a standard benchmark?
 
 Thank you. 
 
 
 Thanks All. I am converting ASP code to CF 9 and have someone comparing
the page load results to the ASP server and they are supposedly getting
faster times on the ASP server.
 
 I told her that I develop my pages within a certain benchmark (the pages
she tested have a 45 MS total execution time) and I am not understanding why
we are comparing the CF and ASP servers.
 
 Would any of you recommend this? It doesn't make sense to me. 
 
 



~|
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:346199
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread David McGuigan

Turn on ColdFusion 9's trusted cache. That'll win.


On Tue, Jul 12, 2011 at 12:47 PM, Mark A. Kruger mkru...@cfwebtools.comwrote:


 Remember that the first run of a CF page compiles the page to java byte
 code. For comparison you should only be testing subsequent loads of the
 page
 (after the compile). It's also useful to explain that compiling process to
 the user. :)

 -mark


 -Original Message-
 From: Wil Genovese [mailto:jugg...@trunkful.com]
 Sent: Tuesday, July 12, 2011 1:02 PM
 To: cf-talk
 Subject: Re: Total Execution Time


 Well, converting a site from one platform to another may not be very
 comparable.  At least not until the final product is done and optimized.
 There are a lot of factors to execution times including many factors
 outside
 of ColdFusion. Database, OS, JVM Tuning, firewall(s), proxies, IIS/Apache
 and so on.





 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 CF Webtools
 www.cfwebtools.com

 wilg...@trunkful.com
 www.trunkful.com

 On Jul 12, 2011, at 12:54 PM, Torrent Girl wrote:

 
  What is a good total execution time to aim for in Coldfusion? Is there
  a standard benchmark?
 
  Thank you.
 
 
  Thanks All. I am converting ASP code to CF 9 and have someone comparing
 the page load results to the ASP server and they are supposedly getting
 faster times on the ASP server.
 
  I told her that I develop my pages within a certain benchmark (the pages
 she tested have a 45 MS total execution time) and I am not understanding
 why
 we are comparing the CF and ASP servers.
 
  Would any of you recommend this? It doesn't make sense to me.
 
 



 

~|
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:346200
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Total Execution Time

2011-07-12 Thread Bryan Stevenson

+ 1

On Tue, 2011-07-12 at 13:47 -0500, Mark A. Kruger wrote:

 Remember that the first run of a CF page compiles the page to java byte
 code. For comparison you should only be testing subsequent loads of the page
 (after the compile). It's also useful to explain that compiling process to
 the user. :)
 
 -mark


-- 


Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.
Please consider the environment before printing this e-mail



~|
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:346201
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Russ Michaels

also remember that ASP is a native technology on windows/IIS so is
most likely to run quicker, if you were to coompare 2 technologies that run
as an additional tier on top of the OS, such as PHP and CF on windows, then
the results would be a more fair comparison.

Russ

On Tue, Jul 12, 2011 at 7:53 PM, Bryan Stevenson 
br...@electricedgesystems.com wrote:


 + 1

 On Tue, 2011-07-12 at 13:47 -0500, Mark A. Kruger wrote:

  Remember that the first run of a CF page compiles the page to java byte
  code. For comparison you should only be testing subsequent loads of the
 page
  (after the compile). It's also useful to explain that compiling process
 to
  the user. :)
 
  -mark


 --


 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: br...@electricedgesystems.com
 web: www.electricedgesystems.com

 Notice:
 This message, including any attachments, is confidential and may contain
 information that is privileged or exempt from disclosure. It is intended
 only for the person to whom it is addressed unless expressly authorized
 otherwise by the sender. If you are not an authorized recipient, please
 notify the sender immediately and permanently destroy all copies of this
 message and attachments.
 Please consider the environment before printing this e-mail



 

~|
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:346202
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Total Execution Time

2011-07-12 Thread Mark A. Kruger

Russ,

I would say ASP might be quicker on say windows 2000 which still supported
native COM  but it was never really considered super duper fast... (even
for a windows application) It had fast OLE DB access I suppose. But I always
thought of it as just bolted on to IIS as a must have sort of cgi+ layer.
Windows web tech wasn't really sophisticated till .NET came around. Don't
you think?

-Mark

-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Tuesday, July 12, 2011 2:10 PM
To: cf-talk
Subject: Re: Total Execution Time


also remember that ASP is a native technology on windows/IIS so is
most likely to run quicker, if you were to coompare 2 technologies that run
as an additional tier on top of the OS, such as PHP and CF on windows, then
the results would be a more fair comparison.

Russ

On Tue, Jul 12, 2011 at 7:53 PM, Bryan Stevenson 
br...@electricedgesystems.com wrote:


 + 1

 On Tue, 2011-07-12 at 13:47 -0500, Mark A. Kruger wrote:

  Remember that the first run of a CF page compiles the page to java
byte
  code. For comparison you should only be testing subsequent loads of the
 page
  (after the compile). It's also useful to explain that compiling process
 to
  the user. :)
 
  -mark


 --


 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: br...@electricedgesystems.com
 web: www.electricedgesystems.com

 Notice:
 This message, including any attachments, is confidential and may contain
 information that is privileged or exempt from disclosure. It is intended
 only for the person to whom it is addressed unless expressly authorized
 otherwise by the sender. If you are not an authorized recipient, please
 notify the sender immediately and permanently destroy all copies of this
 message and attachments.
 Please consider the environment before printing this e-mail



 



~|
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:346203
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Russ Michaels

I would say it was probably slower in windows 2000, it is a core part of IIS
now.


remember, that cfml has to be compiled into java byte code, processed by
JRUN and then executed by the JRE, so more steps involved and JRUN certainly
uses far more system resources than ASP.

The advantage of CF was never its execution speed, but rather its RAD speed.

Russ

On Tue, Jul 12, 2011 at 9:08 PM, Mark A. Kruger mkru...@cfwebtools.comwrote:


 Russ,

 I would say ASP might be quicker on say windows 2000 which still
 supported
 native COM  but it was never really considered super duper fast...
 (even
 for a windows application) It had fast OLE DB access I suppose. But I
 always
 thought of it as just bolted on to IIS as a must have sort of cgi+ layer.
 Windows web tech wasn't really sophisticated till .NET came around. Don't
 you think?

 -Mark

 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Tuesday, July 12, 2011 2:10 PM
 To: cf-talk
 Subject: Re: Total Execution Time


 also remember that ASP is a native technology on windows/IIS so is
 most likely to run quicker, if you were to coompare 2 technologies that run
 as an additional tier on top of the OS, such as PHP and CF on windows, then
 the results would be a more fair comparison.

 Russ

 On Tue, Jul 12, 2011 at 7:53 PM, Bryan Stevenson 
 br...@electricedgesystems.com wrote:

 
  + 1
 
  On Tue, 2011-07-12 at 13:47 -0500, Mark A. Kruger wrote:
 
   Remember that the first run of a CF page compiles the page to java
 byte
   code. For comparison you should only be testing subsequent loads of the
  page
   (after the compile). It's also useful to explain that compiling process
  to
   the user. :)
  
   -mark
 
 
  --
 
 
  Bryan Stevenson B.Comm.
  VP  Director of E-Commerce Development
  Electric Edge Systems Group Inc.
  phone: 250.480.0642
  fax: 250.480.1264
  cell: 250.920.8830
  e-mail: br...@electricedgesystems.com
  web: www.electricedgesystems.com
 
  Notice:
  This message, including any attachments, is confidential and may contain
  information that is privileged or exempt from disclosure. It is intended
  only for the person to whom it is addressed unless expressly authorized
  otherwise by the sender. If you are not an authorized recipient, please
  notify the sender immediately and permanently destroy all copies of this
  message and attachments.
  Please consider the environment before printing this e-mail
 
 
 
 



 

~|
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:346204
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Dave Watts

 I would say it was probably slower in windows 2000, it is a core part of IIS
 now.

Well, honestly, that by itself doesn't really make much of a
difference. It's not like the processing time is spent handing
requests from IIS to CF and back, or that running in-process IIS
applications is significantly faster than running out-of-process IIS
applications (if I recall correctly, you can do both with ASP.NET).

 remember, that cfml has to be compiled into java byte code, processed by
 JRUN and then executed by the JRE, so more steps involved and JRUN certainly
 uses far more system resources than ASP.

That's not much different from what happens with ASP.NET pages. They
start as text, and have to be compiled into bytecode (MSIL, I think
it's called), then executed by the .NET runtime. And JRun using more
system resources shouldn't make a performance difference.

I think the biggest reason for this performance difference is that CF
is quite a bit different from Java - loosely-typed vs strictly-typed,
etc. Whereas, if you write C# code, you're already telling the
compiler a lot more about what to do.

 The advantage of CF was never its execution speed, but rather its RAD speed.

Exactly. And when most web applications spend most of their time on
database queries (which will likely be the same on various platforms)
who really cares that you can run 1 iterations of something you'd
never actually do faster on platform A vs platform B?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
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:346205
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Judah McAuley

On Tue, Jul 12, 2011 at 3:48 PM, Dave Watts dwa...@figleaf.com wrote:

 remember, that cfml has to be compiled into java byte code, processed by
 JRUN and then executed by the JRE, so more steps involved and JRUN certainly
 uses far more system resources than ASP.

 That's not much different from what happens with ASP.NET pages. They
 start as text, and have to be compiled into bytecode (MSIL, I think
 it's called), then executed by the .NET runtime. And JRun using more
 system resources shouldn't make a performance difference.

On .NET in an MVC app you have two different types of dynamic
resources, the compiled C# code for your model and the .aspx pages for
the views. Your model code gets compiled down to a dll, just like any
other windows app and runs on the CLR (common library runtime). The
views will be compiled the first time you hit them, like in CF, if you
just copy them over.  On the other hand, you can ship them precompiled
(my installer build task does this) which takes away that first time
hit but you can also do that with CF and use cfcompile to produce the
java byte code and then distribute that.

 I think the biggest reason for this performance difference is that CF
 is quite a bit different from Java - loosely-typed vs strictly-typed,
 etc. Whereas, if you write C# code, you're already telling the
 compiler a lot more about what to do.

And there are different ways of turning the same CF code into Java
code. Adobe and Railo both produce different Java code for the same CF
code in many cases and those choices have impacts on performance.

 The advantage of CF was never its execution speed, but rather its RAD speed.

 Exactly. And when most web applications spend most of their time on
 database queries (which will likely be the same on various platforms)
 who really cares that you can run 1 iterations of something you'd
 never actually do faster on platform A vs platform B?

Database query speed is certainly a big element as is your approach to
caching. Normal database queries will probably be similar in speed on
.Net versus CF but there are some differences. The JDBC driver for SQL
Server, for instance, doesn't support Table Valued Parameters which
allows you to pipeline large numbers of statements in one connection.
We had an import process that was doing on the order of 50,000
inserts/updates. In CF, even with connection pooling, it was taking
hours. We switched to using TVP statements through an ADO.Net
connection and dropped it down to a minute or two. Have to know the
limitations of your tools.

judah

~|
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:346208
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Dave Watts

  That's not much different from what happens with ASP.NET pages. They
  start as text, and have to be compiled into bytecode (MSIL, I think
  it's called), then executed by the .NET runtime. And JRun using more
  system resources shouldn't make a performance difference.

 On .NET in an MVC app you have two different types of dynamic
 resources, the compiled C# code for your model and the .aspx pages for
 the views. Your model code gets compiled down to a dll, just like any
 other windows app and runs on the CLR (common library runtime). The
 views will be compiled the first time you hit them, like in CF, if you
 just copy them over.  On the other hand, you can ship them precompiled
 (my installer build task does this) which takes away that first time
 hit but you can also do that with CF and use cfcompile to produce the
 java byte code and then distribute that.

Right, but my point is that overall they're just not all that
different. You can also use Java for your model if you really want to,
rather than CF, in which case it'll work the same way as the Microsoft
MVC design framework.

 Have to know the limitations of your tools.

Sure, there will always be occasional edge cases where one environment
does something significantly better than another. But for the average
web application, this doesn't come into play.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite

~|
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:346210
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Total Execution Time

2011-07-12 Thread Judah McAuley

On Tue, Jul 12, 2011 at 4:33 PM, Dave Watts dwa...@figleaf.com wrote:

  That's not much different from what happens with ASP.NET pages. They
  start as text, and have to be compiled into bytecode (MSIL, I think
  it's called), then executed by the .NET runtime. And JRun using more
  system resources shouldn't make a performance difference.

 On .NET in an MVC app you have two different types of dynamic
 resources, the compiled C# code for your model and the .aspx pages for
 the views. Your model code gets compiled down to a dll, just like any
 other windows app and runs on the CLR (common library runtime). The
 views will be compiled the first time you hit them, like in CF, if you
 just copy them over.  On the other hand, you can ship them precompiled
 (my installer build task does this) which takes away that first time
 hit but you can also do that with CF and use cfcompile to produce the
 java byte code and then distribute that.

 Right, but my point is that overall they're just not all that
 different. You can also use Java for your model if you really want to,
 rather than CF, in which case it'll work the same way as the Microsoft
 MVC design framework.

 Have to know the limitations of your tools.

 Sure, there will always be occasional edge cases where one environment
 does something significantly better than another. But for the average
 web application, this doesn't come into play.


Agreed on all accounts, just giving others some insight into what
happens on the .Net side of things.  All things considered, I'll still
use CF if given a chance for most projects for it's simplicity and RAD
features.

Juda

~|
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:346211
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm