S
S
SCINER2010-12-17 01:04:46
PHP
SCINER, 2010-12-17 01:04:46

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:

  • Any kind of cache is disabled;
  • Average computer configuration (let's say 1Ghz, 1Gb RAM);
  • Availability in the MVC framework.

Thank you for your attention.

Answer the question

In order to leave comments, you need to log in

10 answer(s)
H
Horse, 2010-12-17
@Horse

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.

P
Pavlo Ponomarenko, 2010-12-17
@TheShock

Focus on 10-50ms.

F
fStrange, 2010-12-17
@fStrange

do not choose fast, choose convenient

V
Vyacheslav Plisko, 2010-12-17
@AmdY

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.

I
Ivan, 2010-12-17
@dohlik

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.

A
Alexander, 2010-12-17
@akalend

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.
When earning universal solutions, we lose something. The more versatile the solution, the less productive it is. Therefore, when developing a bike, answer the questions:
- what main tasks will I solve on it
- on what hostings will it spin
- what additional features I can use
- what else can I tweak for my solution.
The more features I can manipulate, the more powerful system I can build.
As an example, I can recommend my bike
It is tailored for certain technical solutions, and its speed exceeds ZF by 4 times with disabled caching and acceleration on the same type of low-resource requests. Due to their ignorance, I did not compare with other frameworks. The main feature is described in the High Performance blog.
As a piece of advice, I can suggest: in order to achieve a performance effect, we need to develop the system so that the number of database accesses is minimal, and it is better that it does not exist at all. We reduce the number of joins to zero, We are not afraid to join and sort on the client, we are not afraid of demoralization, since the cost of a quick return is more expensive than the cost of disks. Looking for alternatives. Practice shows that all unsuccessful (brake) projects are a poorly designed database and access to it.

A
Alexander, 2010-12-17
@akalend

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.

R
Renat Ibragimov, 2010-12-17
@MpaK999

I recently saw such “synthetic” tests with the FuelPHP framework, even CodeIgniter does it, but I think Fat Free Framework is the fastest anyway ^)

M
Mike, 2014-01-07
@Mike77

Bitrix

Z
zooks, 2015-01-25
@zooks

Yii write that their framework is the fastest.
www.yiiframework.com/performance

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question