<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 20 Jun 2013 07:39:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Enrise Blog: Zend Framework 2 Performance]]></title>
      <guid>http://www.phpdeveloper.org/news/17585</guid>
      <link>http://www.phpdeveloper.org/news/17585</link>
      <description><![CDATA[<p>
On the Enrise blog <i>Tim de Pater</i> has <a href="http://www.enrise.com/2012/02/zend-framework-2-performance/">done some benchmarking</a> of some Zend Framework-based applications, comparing the performance of a Zend Framework 1 application to that of a Zend Framework 2 app.
</p>
<blockquote>
A few days ago I read an <a href="http://www.piprime.fr/1541/benchmark-of-some-popular-web-frameworks/">article</a> that compared some frameworks. Amongst others, both Zend Framework 1 and <a href="http://framework.zend.com/zf2">Zend Framework 2</a> were included. What struck me was that ZF2 was 5 times slower then ZF1. I know, it's in beta, not yet optimized for production use. But I couldn't believe the difference was so great. So I've tested it myself and want to share my results in this blog.
</blockquote>
<p>
Included in the post are the specs for the machine he used (the host machine and the VirtualBox instances), the versions of ZF he used (1.11.1 and the latest from ZF2) and <a href="https://gist.github.com/1876257">a script</a> that uses ApacheBench to perform the testing. His testing involved benchmarking the requests per second that each application was able to perform. <a href="http://www.enrise.com/2012/02/zend-framework-2-performance/out-2/">In</a> <a href="http://www.enrise.com/2012/02/zend-framework-2-performance/out/">all</a> <a href="http://www.enrise.com/2012/02/zend-framework-2-performance/out-3/">cases</a> the ZF2 performance <a href="http://www.enrise.com/2012/02/zend-framework-2-performance/out-4/">was slower</a> (consistently) by a factor of about four times. The Zend Framework team are aware of the issues behind this (something involving <a href="http://framework.zend.com/wiki/display/ZFDEV2/Zend+DI+QuickStart">the DIC</a>) and already have plans to work on it in the future.
</p>
<blockquote>
And he's completely right [about it being premature to report benchmarks on a pre-stable release]. This benchmark was meant purely to see if the article from <a href="http://www.piprime.fr/1541/benchmark-of-some-popular-web-frameworks/">piprime.fr</a> made any sense. And it's a starting point for me to see what you can do with the different optimizations and what their performance impact is.
</blockquote>]]></description>
      <pubDate>Fri, 24 Feb 2012 12:42:21 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP 10.0 Blog: Benchmarking Zend Framework loader]]></title>
      <guid>http://www.phpdeveloper.org/news/10209</guid>
      <link>http://www.phpdeveloper.org/news/10209</link>
      <description><![CDATA[<p>
On the PHP 10.0 blog, <i>Stas</i> <a href="http://php100.wordpress.com/2008/05/16/benchmarking-zend-framework-loader/">does a little benchmarking</a> of a big part of each request to a Zend Framework application - the Loader.
</p>
<blockquote>
On <a href="http://framework.zend.com/">Zend Framework</a> <a href="http://framework.zend.com/archives">lists</a> there was a <a href="http://www.nabble.com/Zend-Loader-performance-to17170525.html#a17170525">topic</a> raised about performance impact of <a href="http://framework.zend.com/manual/en/zend.loader.html">Zend_Loader component</a>, which is used for - no surprise here! - loading classes, including autoloading, etc. Some folks thought that since Zend_Loader is executing some code before actual loading the required file, it must cost something. And it makes sense. However, how much does it cost?
</blockquote>
<p>
He uses a <a href="http://random-bits-of.info/fw-tests/">set of scripts</a> he developed to compare the bytecode caches of the requests both with and without the caching turned on. He ran the tests on a PHP 5.2 and PHP 5.3 installs with the lower (better) numbers coming from the latter in requests per second. He highly recommends turning this caching on on your system if you haven't already.
</p>]]></description>
      <pubDate>Mon, 19 May 2008 08:49:56 -0500</pubDate>
    </item>
  </channel>
</rss>
