New server. New tests. Release. [Benchmark of php frameworks v0.0.3]

in utopian-io •  7 years ago  (edited)

Some time ago I started writing another one Benchmark of php frameworks.

In my opinion minimal functional can't show real behavior of the framework. I have decided to test php frameworks by middle complexity application. This app will be represented as "blogs platform". It consist of data about authors, theirs posts by categories and types. Such app can be realized in any framework "from a box".

Pages for testing:

  • /authors - lists of authors with posts counts.
  • /posts - all posts with information about types, authors and categories.
  • /categories - list of categories with counts of posts in every one.
  • /index - simple "hello world" for comparison.

Quantity of notes about 1000. Authors and categories - 50-100pc.

It must be quite simple app, but at the same time (imho) it is capable to show dependencies between operations with data and page generation time and consumable memory

Will page generation time be equal or comparable? What surprises can we get? I am sure, throughput will be stuck in mysql bottleneck???. But the tendency will be obvious.

I have written test application for Laravel 5.4 and phalcon 3.2

Test results:

This results were obtained on the server with the following parameters:
Centos 7.2 + vestacp + apache2.4 + php 7.0.20 + mariadb 5.5.52
2 X86 64bit Cores 2GB memory (https://www.scaleway.com/ Virtual SSD Cloud Servers / Starter )

But, for personal reasons, the tests were postponed indefinitely.

And now I`m Back

In Release 0.0.3 :

Ready Frameworks for test

  • Phalcon 3.2
  • Laravel 5.4

Some server parameters are changed:

  • php 7.0.20 -> php 7.1.10
  • mariadb 5.5.52 -> 10.2.8-MariaDB

Let's compare #phalcon and #laravel in new conditionals

frameworkrequests per secondrelativepeak memoryrelative
phalcon-index262.746,568.50.441.0
phalcon-authors25.97649.30.561.3
phalcon-categories13.93348.30.571.3
laravel-index9.46236.56.2114.2
laravel-categories6.47161.87.5117.2
laravel-authors6.25156.37.3416.8
phalcon-posts0.092.32.245.1
laravel-posts0.041.015.1334.7

screenshot-php-frameworks.semasping.info 2017-12-26 02-02-59-751.png

Most of all I'm interested in the time of generation of a page with posts.

  • Phalcon-posts ~ 2.3s
  • Laravel-posts ~5.1s

Results almost coincide with previous tests.

Roadmap:

  • Try to use Cache for all frameworks
  • Implementing a test application and running tests on Symfony
  • Implementing a test application and running tests on Yii
  • Connection with https://blackfire.io/
  • Deal with the Docker and wrap it all up in it. To be able to quickly deploy to a more powerful server for comparison.

PS: More information about structure of test application
Part 1. Introduction. - Why i decide to do new bencmark of php frameworks.

Part 2. Database scheme and generating data for testing app. - Description of application, database structure and data.



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hey @semasping I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you!

Мне пoнрaвилось, а чтo вы дyмaете по этомy поводу?

👏

💪

круто

😁

good post

good article

cool

мне нравится

☑️

🌈

и я решил мимо не проходить

upvote this!

солидарен

nice post

огонь

Cool! Upvote

nice article