News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Wojciech Sznapka's Blog:
Modern frameworks comparison
January 19, 2012 @ 12:03:17

In this new post to his blog Wojciech Sznapka compares three different frameworks - Symfony2 (PHP), Django (Python) and Ruby on Rails (Ruby) - in their request handling performance, lines of code and average community on Github.

If you ask me, which one is the best - I can't point one, all of them are very good. But let's try to measure frameworks. For purpose of this article, I created three applications in Symfony2, Django and Ruby On Rails. All those apps do the same - show two tables, one shows top USA cities (by population), second shows US states with highest number of big cities (above 100k citizens). I don't want to measure frameworks by echoing "Hello world", because it's pointless.

Each of his applications use the same data set and use a default ORM with optimized queries, HTML rendered by an internal template engine and rounded floats. His performance requests (using Apache's ab) for this sample application show Symfony2 being able to handle the most requests/second followed by Ruby then Django. Symfony2 comes in at a larger file size than both the others combined, though. As far as the community is concerned, Ruby on Rails outpaces the others with about three times as many "watchers" on Github.

Be sure to read the comments for some opinions, both for and against his results.

0 comments voice your opinion now!
framework compare django symfony2 rubyonrails opinion


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Handling several DBALs in Symfony2 through the Dependency Injection with PHP

PHP-Coding-Practices.com: Making CakePHP's Pagination work with Model::expects()

Enterprise PHP Magazine: Why Groupe Girard choosed PHP to J2EE to develop their ERP

Zend Developer Zone: It\'s Time for Woodie\'s Framework Roundup (it\'s a Toy Story 2 Reference)

Pro-PHP Podcast: Interview with Jim Plush of Panasonic


Community Events

Don't see your event here?
Let us know!


framework laravel php7 install library api introduction performance configure application conference release podcast series community symfony2 interview opinion composer example

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework