Re: Performance crash moving to 1.2 from 1.1?

2008-12-09 Thread Jon Bennett

>  I started migration my project from 1.1 to 1.2 a few weeks ago, same
>  thing here. 1.2 Is slower. :(

1.2 does a lot more for you out of the box
1.2 has not reached a stable version yet

I for one can live for the small performance hit (not that I've really
seen any) for the all the extra bits I get from 1.2.

jb

-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Performance crash moving to 1.2 from 1.1?

2008-12-09 Thread mark_story

Saying it is slower, without any indication as to how or why is not
really helpful.  Running your application with debug > 0 will always
be slow.  As for 1.2 being slower than 1.1 that is entirely possible.
However, it does so much more as well.

If raw performance was your only concern you would code in C, but you
don't. Time spent developing you applications is important as well, so
you use PHP and a PHP framework.  Every line of code costs time, 1.2
has more code and does more things than 1.1 so it is a fair assumption
that it would run marginally slower.  However we feel that 1.2 is
quite speedy all things considered.

-Mark

On Dec 9, 10:04 am, MaxDao <[EMAIL PROTECTED]> wrote:
> I started migration my project from 1.1 to 1.2 a few weeks ago, same
> thing here. 1.2 Is slower. :(
>
> On Dec 9, 12:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Chmoded those dirs, and cake is creating some tmp files there now..
>
> > Profiled again .. in production mode with same results ;(
>
> > Any other suggestions where to look?  Thanks.
>
> > On 9 Dez., 11:28, AD7six <[EMAIL PROTECTED]> wrote:
>
> > > On Dec 9, 11:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > > I'm using debug mode 1,
>
> > > testing performance in debug mode is at best an interesting afternoons
> > > pissing about :).
>
> > > > and I've even tried production mode in cake
> > > > 1.2x and the performance is still poor.  I ran
> > > > xdebug on the code and it appears to be a group of functions really
> > > > sucking up time:
>
> > > > Folder->read = 19.15% (591 calls)
> > > > Folder->__tree = 9.12%  (590 calls)
> > > > php::array_merge = 8.71% (1348 calls)
> > > > Folder->slashTerm = 7.69% (3413 calls)
> > > > Folder->addPathElement  = 4.42% (3312 calls)
>
> > > The above indicates the results are either from profiling in debug
> > > mode OR because your tmp dir is not (recursively) writeable.
>
> > > > php::preg_match = 3.81% (12008 calls)
>
> > > > That's like 51% of runtime..
>
> > > by my calculations, approximately 98.62% irrelevant too (most
> > > likely) :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Performance crash moving to 1.2 from 1.1?

2008-12-09 Thread MaxDao

I started migration my project from 1.1 to 1.2 a few weeks ago, same
thing here. 1.2 Is slower. :(

On Dec 9, 12:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Chmoded those dirs, and cake is creating some tmp files there now..
>
> Profiled again .. in production mode with same results ;(
>
> Any other suggestions where to look?  Thanks.
>
> On 9 Dez., 11:28, AD7six <[EMAIL PROTECTED]> wrote:
>
> > On Dec 9, 11:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > I'm using debug mode 1,
>
> > testing performance in debug mode is at best an interesting afternoons
> > pissing about :).
>
> > > and I've even tried production mode in cake
> > > 1.2x and the performance is still poor.  I ran
> > > xdebug on the code and it appears to be a group of functions really
> > > sucking up time:
>
> > > Folder->read = 19.15% (591 calls)
> > > Folder->__tree = 9.12%  (590 calls)
> > > php::array_merge = 8.71% (1348 calls)
> > > Folder->slashTerm = 7.69% (3413 calls)
> > > Folder->addPathElement  = 4.42% (3312 calls)
>
> > The above indicates the results are either from profiling in debug
> > mode OR because your tmp dir is not (recursively) writeable.
>
> > > php::preg_match = 3.81% (12008 calls)
>
> > > That's like 51% of runtime..
>
> > by my calculations, approximately 98.62% irrelevant too (most
> > likely) :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Performance crash moving to 1.2 from 1.1?

2008-12-09 Thread [EMAIL PROTECTED]

Chmoded those dirs, and cake is creating some tmp files there now..

Profiled again .. in production mode with same results ;(

Any other suggestions where to look?  Thanks.


On 9 Dez., 11:28, AD7six <[EMAIL PROTECTED]> wrote:
> On Dec 9, 11:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > I'm using debug mode 1,
>
> testing performance in debug mode is at best an interesting afternoons
> pissing about :).
>
> > and I've even tried production mode in cake
> > 1.2x and the performance is still poor.  I ran
> > xdebug on the code and it appears to be a group of functions really
> > sucking up time:
>
> > Folder->read = 19.15% (591 calls)
> > Folder->__tree = 9.12%  (590 calls)
> > php::array_merge = 8.71% (1348 calls)
> > Folder->slashTerm = 7.69% (3413 calls)
> > Folder->addPathElement  = 4.42% (3312 calls)
>
> The above indicates the results are either from profiling in debug
> mode OR because your tmp dir is not (recursively) writeable.
>
> > php::preg_match = 3.81% (12008 calls)
>
> > That's like 51% of runtime..
>
> by my calculations, approximately 98.62% irrelevant too (most
> likely) :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Performance crash moving to 1.2 from 1.1?

2008-12-09 Thread AD7six



On Dec 9, 11:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'm using debug mode 1,

testing performance in debug mode is at best an interesting afternoons
pissing about :).

> and I've even tried production mode in cake
> 1.2x and the performance is still poor.  I ran
> xdebug on the code and it appears to be a group of functions really
> sucking up time:
>
> Folder->read = 19.15% (591 calls)
> Folder->__tree = 9.12%  (590 calls)
> php::array_merge = 8.71% (1348 calls)
> Folder->slashTerm = 7.69% (3413 calls)
> Folder->addPathElement  = 4.42% (3312 calls)

The above indicates the results are either from profiling in debug
mode OR because your tmp dir is not (recursively) writeable.

> php::preg_match = 3.81% (12008 calls)
>
> That's like 51% of runtime..

by my calculations, approximately 98.62% irrelevant too (most
likely) :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Performance crash moving to 1.2 from 1.1?

2008-12-09 Thread [EMAIL PROTECTED]

I'm using debug mode 1, and I've even tried production mode in cake
1.2x and the performance is still poor.  I ran
xdebug on the code and it appears to be a group of functions really
sucking up time:

Folder->read = 19.15% (591 calls)
Folder->__tree = 9.12%  (590 calls)
php::array_merge = 8.71% (1348 calls)
Folder->slashTerm = 7.69% (3413 calls)
Folder->addPathElement  = 4.42% (3312 calls)
php::preg_match = 3.81% (12008 calls)

That's like 51% of runtime..



On 8 Dez., 19:23, mark_story <[EMAIL PROTECTED]> wrote:
> Well testing times in debug mode is not really representative of
> performance.  The debug mode in 1.2 is purposefully more heavy than in
> 1.1.  It does a lot more work each request.  I would try some
> benchmarks with debug off.  Apache AB can help in this area.
>
> -Mark
>
> On Dec 8, 9:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > I've written a very small test setup using cake 1.1... it works
> > turning out excellent numbers:
>
> > 
>
> > Then I noticed that 1.2 should be released at some point and thought
> > it might be better to start with it.. I ported my code over.. ran the
> > exact same page and am getting some terrible numbers?
>
> > 
>
> > -
> > I've got an app_controller, which does a bit of extra processing (but
> > the same file exists for both implementations), a route setup, and a
> > controller/action for the route.
>
> > Could there be anything that's configured wrong and throwing off the
> > performance so much on the same code?
> > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Performance crash moving to 1.2 from 1.1?

2008-12-08 Thread mark_story

Well testing times in debug mode is not really representative of
performance.  The debug mode in 1.2 is purposefully more heavy than in
1.1.  It does a lot more work each request.  I would try some
benchmarks with debug off.  Apache AB can help in this area.

-Mark

On Dec 8, 9:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I've written a very small test setup using cake 1.1... it works
> turning out excellent numbers:
>
> 
>
> Then I noticed that 1.2 should be released at some point and thought
> it might be better to start with it.. I ported my code over.. ran the
> exact same page and am getting some terrible numbers?
>
> 
>
> -
> I've got an app_controller, which does a bit of extra processing (but
> the same file exists for both implementations), a route setup, and a
> controller/action for the route.
>
> Could there be anything that's configured wrong and throwing off the
> performance so much on the same code?
> Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Performance crash moving to 1.2 from 1.1?

2008-12-08 Thread [EMAIL PROTECTED]

I've written a very small test setup using cake 1.1... it works
turning out excellent numbers:



Then I noticed that 1.2 should be released at some point and thought
it might be better to start with it.. I ported my code over.. ran the
exact same page and am getting some terrible numbers?



-
I've got an app_controller, which does a bit of extra processing (but
the same file exists for both implementations), a route setup, and a
controller/action for the route.

Could there be anything that's configured wrong and throwing off the
performance so much on the same code?
Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---