Framework Execution Time

28 views
Skip to first unread message

sherman

unread,
Mar 30, 2011, 7:31:41 AM3/30/11
to ColdFusion on Wheels
Hi guys,

I posted my question at http://cfwheels.org/docs/1-1/chapter/beginner-tutorial-hello-database
(not unlocked until yet) a few hours ago, but I think here is the
better place to discuss. After a while searching the web and this
group, I got no answer, so I will ask you.

Yesterday I installed CFWheels and did the beginner tutorial "hello
database" and was wondering, why the execution time is so high. Even
an empty page (no code in controller, no code in view) needs 200ms
until 600ms to execute. Is this normal?
Or what I'm doing wrong? I tried to change different settings, but it
didn't help.


Application: 5DAB538FD2134428606CEEC813E6E854 [Reload, Run
Tests]
Framework: Wheels 1.1.3
CFML Engine: Adobe ColdFusion 9,0,1,274733
Default Data Source: InternationalMail
Active Environment: Design [Development, Testing, Maintenance,
Production]
URL Rewriting: Partial
URL Obfuscation: Off
Plugins: None
Controller: KundenDatens
Action: new
Additional Params: None
Caching Stats: hits: 0, misses: 0, culls: 0
Execution Time: 438ms (view ~16ms, action ~16ms, beforefilters ~15ms)

Debugging Information
ColdFusion Server Enterprise 9,0,1,274733
Template /wheels_site/index.cfm
Time Stamp 30-Mar-11 01:24 PM
Locale German (Austrian)
User Agent Mozilla/5.0 (Windows NT 5.1; rv:2.0)
Gecko/20100101 Firefox/4.0
Remote IP 10.110.50.39
Host Name 10.110.50.39

Execution Time

Total Time Avg Time Count Template
438 ms 438 ms 1 CFC[ D:\inetpub\wwwroot\wheels_site\Application.cfc
| onRequest(/wheels_site/index.cfm) ] from D:\inetpub\wwwroot
\wheels_site\Application.cfc
438 ms 438 ms 1 CFC[ D:\inetpub\wwwroot\wheels_site\wheels
\Dispatch.cfc | $request() ] from D:\inetpub\wwwroot\wheels_site\wheels
\Dispatch.cfc
438 ms 438 ms 1 D:\inetpub\wwwroot\wheels_site\index.cfm
438 ms 438 ms 1 D:\inetpub\wwwroot\wheels_site\wheels\index.cfm

Thanks in advance.

Sherman

Chris Peters

unread,
Mar 30, 2011, 9:32:05 AM3/30/11
to cfwh...@googlegroups.com
When you are in design mode, many parts of the framework are not cached. This is so that design/development activities are more convenient, and it's really a good tradeoff.

When you run in testing or production modes, it ends up being faster.


--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.


Russ Johnson

unread,
Mar 30, 2011, 11:28:04 AM3/30/11
to cfwh...@googlegroups.com
Also, its common knowledge that the Report Execution times function in CF doesnt report true execution times when dealing with CFC's. Its been that way for several versions. Its always recommended to turn off Report Execution times in your CF Admin when dealing with CFC based apps and use another method for execution times if you need it.

Mike Henke

unread,
Mar 30, 2011, 11:37:16 AM3/30/11
to ColdFusion on Wheels
I replied to your question on the docs. Basically it is like Russ and
Chris are saying. Benchmarking is a science and I am not familiar with
it. Just grabbing numbers usually doesn't reflect properly what is
happening. Also each environment mode has default features for
performance.

On Mar 30, 10:28 am, Russ Johnson <russ.cfco...@gmail.com> wrote:
> Also, its common knowledge that the Report Execution times function in CF doesnt report true execution times when dealing with CFC's. Its been that way for several versions. Its always recommended to turn off Report Execution times in your CF Admin when dealing with CFC based apps and use another method for execution times if you need it.
>
> Russ Johnson
> @russ_johnson
> r...@angry-fly.com
> russ.cfco...@gmail.comwww.angry-fly.com
>
> On Mar 30, 2011, at 9:32 AM, Chris Peters wrote:
>
> > When you are in design mode, many parts of the framework are not cached. This is so that design/development activities are more convenient, and it's really a good tradeoff.
>
> > When you run in testing or production modes, it ends up being faster.
>
> > On Wed, Mar 30, 2011 at 7:31 AM, sherman <fot...@gmail.com> wrote:
> > Hi guys,
>
> > I posted my question athttp://cfwheels.org/docs/1-1/chapter/beginner-tutorial-hello-database
> > For more options, visit this group athttp://groups.google.com/group/cfwheels?hl=en.

sherman

unread,
Mar 31, 2011, 7:48:35 AM3/31/11
to ColdFusion on Wheels
Thank you for your tipps.
I didn't see any difference when switching to production or testing
mode.
But it is a little bit faster without the CF-debugging...

Per Djurner

unread,
Mar 31, 2011, 8:38:08 AM3/31/11
to cfwh...@googlegroups.com
I can generally load the "Welcome to Wheels" page in 2-4ms on a decent server with all the correct settings applied (Production mode in Wheels, all debugging turned off in CF admin, Trusted Cache on etc).
It could be your database calls that are slow, put some GetTickCount() calls here and there to find out maybe?
Reply all
Reply to author
Forward
0 new messages