D
D
deleted-mifki2012-10-01 16:34:52
PHP
deleted-mifki, 2012-10-01 16:34:52

What is the performance of CakePHP?

Has anyone managed to get CakePHP to handle some shameful number of requests per second? I know that his performance is generally bad, but somehow completely ...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
eox425, 2012-10-02
@eox425

As the opium comrade already wrote, xprof is an excellent tool for profiling PHP applications.
If you are interested in subjective opinion and architecture features ...
In principle, the weakest point of existing PHP frameworks is the implementation of ORM, caching and templating.
From personal subjective experience, I can say that Yii and Symfony2 have the most efficient implementations of this stuff.
But Symfony2 has a much more developed infrastructure, community ... and in general it is much more convenient for me.
Regarding the fact that Symfony is slower than Yii, I can only say that only in dev mode, in production, the difference is not particularly felt. CakePHP almost catches up with kohana in performance. In most cases, the performance of the framework itself is affected by the use of Dependency Injection and other patterns, as well as a slightly pattern of the ORM itself - Active Record or Object Mapping.
APC is not a cake. It is better if you take xcache and cache the application bytecode and queries to the database in it.
memcached is not good for caching database queries if you only have one machine. Those. memcached is good to use in a cluster. In other cases, xcache is faster because it is implemented as a PHP plugin.
More than once witnessed the meme. memcached… don't forget to set the ttl of objects in the cache! This is a fairly common mistake. Implement support for etags and if-modified-since headers for http caching of each page in a mark-tagged way. And then behind nginx you don't have to worry about the performance of frameworks at all ...
Some Yii perverts are off. The framework forum wrote that if you use xcache in parallel with eaccelerator, you can achieve quite impressive results. I don't know if this is true... but I advise you to check.
In general, I climbed over from PHP frameworks (I tried almost all relevant ones) to Grails, which I am quite satisfied with.
Now I'm practicing linking angular.js on node.js <- json-rpc/rest --> grails/play2.
The point is that the templates on the server and the client are the same ... I want to write an article about this.
Allows you to save a lot of time and most importantly - hello client-side templating without hassle and harm to SEO.

P
Puma Thailand, 2012-10-01
@opium

How much is not embarrassing for you?
It can handle about 100, or even more, it just needs optimization of the code and the server environment.

A
Alexey Akulovich, 2012-10-01
@AterCattus

8 Ways to Speed ​​Up the Performance of CakePHP Apps ?
Turn off debugging, engine-level caching, APC…

E
Evgeny Bezymyannikov, 2012-10-01
@psman

Conversation about nothing. On your site, it is possible on the main page a map with 100 thousand points and a powerful server or a static page with a couple of news and 5-6 queries to the database and a half-dead Wirth machine.
"How much does a car cost?" - this is almost a question that can only be answered by knowing what kind of car you exactly need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question