L
L
lagaca2016-03-01 19:44:02
symfony
lagaca, 2016-03-01 19:44:02

Why is symfony so slow?

Before that I worked on yii2. Decided to try symfony. Downloaded the demo app.
Is it normal that it eats 18 MB of RAM and the request is processed in 1.5 seconds?
For comparison: yii - 7 MB of RAM and 0.2 seconds.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Makarov, 2016-03-02
@SamDark

Because it's super flexible. Abstraction is not free.

J
jaxel, 2016-03-02
@jaxel

Because the server should be configured normally. For a naked symphony, the norm is 0.1 sec. On php7 - 70ms.
First enable opcache and switch to nginx

A
Alexey Skobkin, 2016-03-02
@skobkin

Is it normal that it eats 18 MB of RAM and the request is processed in 1.5 seconds?

You launched the framework in debug mode, where each sneeze is recorded and you can see it in the profiler after processing the request. And wonder why resources are wasted. Run in prod, warm up the cache and see how things change.
You will first compare the capabilities of the profilers of these frameworks, and then ask why.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question