V
V
VisualIdeas2020-07-30 16:12:23
PHP
VisualIdeas, 2020-07-30 16:12:23

When choosing a PHP framework, should you pay attention to speed tests?

I make websites!
I have experience writing in PHP on my own "bicycle" MVC simple framework and on Phalcon PHP.

I’m thinking of switching to Symfony or Laravel (because I make websites for clients and sometimes other people have to support websites and it’s not the easiest thing for them to understand other people’s code - at least in terms of time)

I wrote several times on Phalcon PHP - the speed of work is super, but you need to install the PHP extension - and this is sometimes not easy .... All the same,
I want to give the client the opportunity to transfer the site with a simple clone of files and database to a new server. Well, the community of people who own Phalcon PHP is several times smaller than the same Symfony and Laravel ... I

started thinking about the fact that Symfony is more "correct", and Laravel is the fastest in development - but for now we will discard this ...

After looking at a bunch of tests, the speed of these frameworks is terrible (in terms of memory costs, in response speed, in terms of the number of requests processed per minute). But I'm no longer a "boy" and I don't believe in a spherical horse in a vacuum and I understand that all these tests are carried out without optimizations, caching and other accelerating settings.

Should I pay attention to speed tests?
Or, if any of Laravel/Symfony is properly prepared, the engine processing speed will be imperceptible and the speed will depend only on the speed of the database?

Assuming, of course, that I'm running Nginx + php_fpm, PHP 7.4, opcache, and a server on NVME disks.

It's just that the same falcon does not load the kernel files when requested - they are already in memory, and these load a carload of files (((

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Shumov, 2020-07-30
@VisualIdeas

IMHO, useless metric. Let's see why.
What will this metric give us? Nothing. Business logic and network costs eat up much more and against their background, the performance of the engine is not even noticeable. And if you remember that the project consists not only of code, it becomes generally funny

A
Andrey Uteshev, 2020-08-06
@veshetu

https://lumen.laravel.com/
_
The stunningly fast micro-framework by Laravel.

N
NeylonC2, 2020-11-02
@NeylonC2

If you are interested in speed, then you should look towards microframeworks.
For example Lumen, Slim speed comparison

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question