Answer the question
In order to leave comments, you need to log in
Yii how to test a website for memory consumption?
I want to write 2 identical blogs on kohan and yii and test the resource consumption of both.
The kohana has such functionality, when at the end of the page a table is displayed with all queries to the database, their execution time and memory consumption.
Is there such a thing in yii?
And if there is how in 2 words in yii it starts?
The whole idea is to compare 2 frameworks for performance.
Answer the question
In order to leave comments, you need to log in
If you write Yii correctly, use it to its fullest, which not everyone does, then I am 99.99% sure that it will be faster and less expensive than any PHP framework. (Phalcon doesn't count, of course, because the C extension is -__-).
I never understood how factorial calculations can compare the performance of two languages, and spherical blogs in a vacuum - 2 frameworks.
It turns out that if you make a test online store for 100,000 products that are displayed all on the main page at once, then if the X framework includes caching in redis by default, then, a priori, the X framework is "more productive" than the Y framework?
It's a bad idea to compare performance in a dev environment. As far as I understand, debug data in any framework is collected only when the dev environment is turned on (well, or by some setting in the config). So you will not be able to measure the speed of the application, but the speed of the debug data collector, because. this thing is not fast, I'm always disabled in a really working project.
It's better to run in a prod environment and do load testing through siege (or something similar) - measure the response time. Memory consumption is an average indicator for php applications (if we are talking about a blog).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question