Answer the question
In order to leave comments, you need to log in
Choosing the fastest php framework?
I am developing my own php-framework, the main goals of which are the compactness of the engine, the convenience of using it when developing sites on it, and, of course, the page speed.
The question arose: How fast is a page with a news block, a menu and some text block generated by the fastest PHP framework you know and know?
Under conditions:
Answer the question
In order to leave comments, you need to log in
It does not depend on the framework. When the porridge is disabled, you need to go into the database ... Each framework implements different features in its own way, and depending on the specific implementation of the project, the frameworks will behave differently and squeeze out different speeds ... It is not practical, but theoretically it is necessary to compare. For example, if framework X uses a garbage collector, and framework Y does not use - Y is faster than X.
In general, an incorrect question, I think so.
your main mistake is that you are guided by absolute values, but you need to be interested in relative numbers. connect to your project something like pear.php.net/package/Benchmark/download , find out the
numbers:
1. Total time
2. Time to process one controller (action) C (includes MV)
3. Time to query the database (M )
4. Time to process the template (V)
see what takes you longer and optimize, not paying attention to absolute values. It is better, of course, to use xdebug for profiling.
But in any case, it can turn out to be a heavy framework. when the cache is on, it suddenly flies, and the light one will not add much.
Don't chase bare numbers. It is necessary to look for the optimal point of intersection of the “convenience” graph with the “speed” graph. You can make a class for generating a menu that will work out as quickly as possible, but taking a step left and right in it is unrealistic. Or vice versa.
The tests themselves are generally “in a vacuum”. You can access the database with a direct request, you can use the query builder, or you can tweak the ORM. The speed drops, but the convenience grows.
I would advise you to dig into the main frameworks (not only fast ones like Kohana or YII, but also monsters like ZF) in order to get the main ideas that seem really important to you. In principle, this is how all new frameworks are built now - as a result of working on the mistakes of other competitors.
I am developing my own php-framework, the main goals of which are the compactness of the engine, the convenience of using it when developing sites on it, and, of course, the page speed.Each framework represents versatility.
How fast is a page with a news block, a menu and some text block generated by the fastest PHP framework you know and know?when requesting by key, we focus on 20 mc, for me the page itself is formed in 5ms, the remaining 15-20ms for the formation of additional blocks.
I recently saw such “synthetic” tests with the FuelPHP framework, even CodeIgniter does it, but I think Fat Free Framework is the fastest anyway ^)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question