News Feed
Jobs Feed
Sections




News Archive
feed this:

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

Systems Architect:
Performance benchmark of popular PHP frameworks
April 24, 2013 @ 12:04:31

On his site today Lukasz Kujawa has a post that compares some performance benchmarks of several popular PHP frameworks including Slim, CodeIgniter, Laravel, Symfony2 and Zend Framework 2.

There are many assumptions around performance of different PHP frameworks. I frequently hear strong opinions about superiority X over Y in this context. There are companies writing new PHP frameworks from scratch because available solutions are too slow for them. What does it really mean? Does the framework performance matters? Before answering this questions lets check how slow is your framework!

He took the "quick start" projects provided for each of the examples and ran some tests with the Apache Benchmark (ab) tool against EC2 instances, all configured the same way. The results weren't overly surprising with Slim beating the others hands down (it's a micro-framework after all) and Kohana and CodeIgniter coming in second and third. The frameworks with more overhead like Zend Framework and Symfony ranked some of the slowest.

0 comments voice your opinion now!
benchmark framework test apachebenchmark ab results

Link: http://systemsarchitect.net/performance-benchmark-of-popular-php-frameworks

Robert Basic's Blog:
Benchmarking pages behind a login with ab
November 14, 2011 @ 10:12:05

Robert Basic has a recent post showing you how to use the "cookie jar" functionality included with Apache's "ab" benchmarking tool to get behind your PHP-based login with a simple curl and grep combo.

Tonight I decided to relax a bit and what better way of relaxing is there for a geek then to do some bash scripting?! So for fun and no profit I decided to try and benchmark pages with ab, Apache HTTP server benchmarking tool, which are behind a login. Turns out, it's pretty easy after reading some man pages.

He includes an example of the format of the "cookie jar" and the shell script he used to grab the PHP session ID from it and inject it into the "ab" call. The script is on github.

0 comments voice your opinion now!
benchmark ab apache login phpsessid session tutorial curl grep


Shay Ben Moshe's Blog:
PDO Persistent Connection Analysis
June 28, 2011 @ 08:11:15

Shay Ben Moshe has a new post to his blog today looking at some of the benefits that using the persistent connections offered in PDO can have on your application.

PDO is an abstraction layer for database connections in PHP, and it became increasingly popular in the past few years. PDO gives us the option to use a persistent connection. If we don't use this option, a new connection is created for each request. If we do use this option, the connection is not closed at the end of the script, and it is then re-used by other script requests.

He shares the setup for his testing (hardware and MySQL configuration) and some of the results from his tests using the Apache ab tool for making web requests against an application. You'll need to download the archived file to see the results, though. It also includes the files he used to test with, comparing regular connections to the persistent ones.

0 comments voice your opinion now!
pdo persistent connection benchmark apache ab request


Paul Jones' Blog:
Comparing Benchmark Tools
October 28, 2010 @ 11:16:48

Paul Jones has come back around and revisited the benchmarking setup he's created and has rerun some of the baselines on a new, clean EC2 instance and posted the results to his blog. These benchmarks were run using Apache's ab, Acme's http_load and joedog's siege.

I thought it might be interesting to see what each of them reports for the baseline "index.html" and "index.php" cases on the new Amazon EC2 setup (using a 64-bit OS on an m1.large instance). The results follow (all are at 10 concurrent users, averaged over 5 one-minute runs).

In his results, he shows quite different numbers for the "absolute" requests per second that each of the tools registered. There were some differences from the previous benchmark runs that could have been caused by the update in Ubuntu version and using a 64-bit instance over a 32-bit instance on the EC2 setup.

0 comments voice your opinion now!
benchmark application ab siege httpload retest


Vidyut Luther's Blog:
Multivariate Testing, PHP Frameworks, Plea for help.
August 11, 2010 @ 14:20:46

Vidyut Luther has been looking into testing his application, not with unit tests or performance testing, but with multivariate tests (A/B testing).

I was curious if anyone has any experience with Multivariate (A/B) testing with PHP Frameworks. I found http://phpabtest.com/ yesterday, but I haven't heard of anyone using it in production yet. Nor have I been able to gather how easily or well it integrates with Symfony, or other frameworks that introduce some level of caching.

He lays out what he's looking to measure, but isn't sure the tool is up to the job. He's open for suggestions as to what the community at large uses for this sort of thing. Besides the one he mentioned, there's a few other PHP-powered ones (some listed here) but nothing that stands out from the crowd.

0 comments voice your opinion now!
multivariate testing ab framework


The Bakery:
Writing an easy to use A/B test helper with CakePHP and jquery
October 30, 2009 @ 11:57:14

In a recent post to The Bakery (the CakePHP resource) Jonathan Hendler has created a simple A/B test helper using the CakePHP framework and jQuery.

Knowing what is driving the user experience is key to the success of an application. Subtle changes in the interface can cause dramatic shifts in user behavior. Here, A/B tests display two (or more) language choices or color choices to a user (any HTML). Metrics are measured in two ways - 1) did the user click on the button at all and 2) how long did it take them to find it from the moment the page has started loading?

The helper tracks the user through the site and adds the results to a testing table (abtests). The code is included - model, component, controller, helper class and the jquery code to make it all work together. A few usage examples are also thrown in near the end.

0 comments voice your opinion now!
ab test helper cakephp framework jquery


Paul Jones' Blog:
A Siege On Benchmarks
March 06, 2009 @ 09:32:30

Paul Jones, who is obsessed (is that the right word?) with keeping benchamrks on recent versions of several popular PHP frameworks, has posted another look at a slight change in his testing method - a move away from the Apache ab tool and towards seige (a product of JoeDog Software).

It turns out that the siege tool from JoeDog Software is more accurate in reporting static HTML and PHP responsiveness. This is confirmed through Paul Reinheimer as well, who reported the expected responsiveness on other systems.

The over-reporting from ab means that all my previous reporting on benchmarks is skewed too low when comparing framework responsiveness to PHP's maximum responsiveness. As such, I have re-run all the previously published benchmarks using siege instead of ab.

Included in this new post are the "more correct" numbers as produced by siege. His baselines turned out a bit more rational and the statistics of the frameworks seemed to jump a bit because of it, but the percentages in comparing between the frameworks is still about the same.

0 comments voice your opinion now!
framework benchmark cakephp solar symfony zendframework ab siege


Paul Jones' Blog:
Lazyweb Request Why would PHP be *faster* than HTML?
February 20, 2009 @ 09:31:14

While running some benchmarks on some of the more popular PHP frameworks, Paul Jones came across something interesting - a PHP request was handled faster than a static HTML request.

With the help of the great guys at Slicehost.com, I am attempting to run my benchmark series on a virtual private server, to compare with EC2. However, I'm seeing a very strange result for the baselines: a PHP page delivers more requests-per-second than a static HTML page.

According to his results, his runs of ab (the Apache benchmarking tool) showed that requests against the index.html file (versus the index.php) came in at almost 400 requests per second slower. As it turns out, though, the problem of the skewed results wasn't in the serving up of the requests but in the ab tool itself. He picked up another testing tool, seige, and ran that with the same requests and got more correct results.

0 comments voice your opinion now!
html faster benchmark framework test slicehost ubuntu apache ab


PHPImpact Blog:
Zend Framework Controller 22% Drop in Responsiveness
September 17, 2008 @ 12:58:03

On the PHP::Impact blog there's a recent post that details a statistic Paul Jones found with the Zend Framework's performance - a drop in the response time of the front controller between the 1.0 and 1.5 releases.

The most important factor in making a Web application fast is its basic design. You must also know what kinds of processing your framework is doing, and what its bottlenecks are. The best way to find the performance bottlenecks is to monitor the performance counters and to have a thorough understanding of the framework your application is using.

Federico runs some benchmarks of his own (using the Apache benchmarking tool, ab) both with a default "base app" and with a more optimized "take out what you don't need" version.

0 comments voice your opinion now!
zendframework controller response time benchmark ab


Paul Jones' Blog:
Labor Day Benchmarks
September 02, 2008 @ 07:56:01

Since there was such a good response to his previous framework benchmarking post, Paul Jones has come up with a fresh batch of statistics for the latest versions of several frameworks including the Zend Framework, Solar and CakePHP.

By popular request, here is an update of my web framework benchmarks report. [...] In the interest of putting to rest any accusations of bias or favoritism, the entire project codebase is available for public review and criticism here.

Follows the same methods as before, creating "hello world" controllers in each and running the stats against them with the Apache ab tool. A baseline non-framework example is created and tests are run against different versions (including release candidates) of each framework.

I won't spoil the results - you'll just need to check out his post to see who ranked where.

0 comments voice your opinion now!
framework benchmark ab helloworld response



Community Events











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


language composer release framework security performance install opinion application facebook database component unittest introduction hhvm podcast symfony2 series hack package

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