H
H
heresik2020-11-18 16:35:14
Laravel
heresik, 2020-11-18 16:35:14

Is Laravel really that slow?

After a long break, I'm back in action. I look at what they write now.
Five years ago, I would have chosen yii2 without any options.
Now I'm watching laravel the most popular.

Delivered for the test yii2, laravel, yii3.
Yii3 - did not start right away, so I excluded it for now.

So here's what's confusing. On my computer, yii2 gives a simple page in 40-50ms and spends 3-5MB of memory (and if the cache is enabled in less than 30ms), and laravel takes no less than 150ms and takes about 12MB of memory, well, at least 120ms after all, all optimizations (compositor, caching, etc.).

A simple page, without connections to the database.
In the case of laravel, I even tried to give just a line of text, about the same results.

This is fine? What are the current trends?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sanes, 2020-11-18
@Sanes

Because Yii2 is empty. Put Lumen and compare.

For example

Блог с категориями и аутентификацией. Комментарии не реализованы.

F
FanatPHP, 2020-11-18
@FanatPHP

I think the problem is that you have lara in dev mode and the templates are recompiled every time. Well, in general, the cache is not involved. try switching to pro mode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question