<p>I am thinking of using a PHP framework called <a href="http://codeigniter.com/" rel="noreferrer">CodeIgniter</a>. </p>

<p>One of the things I am interested in is its speed. I have, however, no way to find out how fast it is, and would rather not simply take the word of their website for it. Does anybody know how I can determine its speed myself, or can someone tell me of a site that can?</p>

[{'answer_id': 13306, 'author': 'Pierre Spring', 'author_id': 1532, 'author_profile': 'https://Stackoverflow.com/users/1532', 'pm_score': 2, 'selected': False, 'text': '<p>i\'d recommend testing it for yourself. use <a href="http://www.xdebug.org/docs/profiler" rel="nofollow noreferrer">xdebug\'s profiler</a> to create a cachegrind compatible file and <a href="http://code.google.com/p/webgrind/" rel="nofollow noreferrer">webgrind</a> to visualize the file.</p>\n\n<p>that way you end up with very reliable information. </p>\n'}, {'answer_id': 13369, 'author': 'Bob Somers', 'author_id': 1384, 'author_profile': 'https://Stackoverflow.com/users/1384', 'pm_score': 5, 'selected': True, 'text': '<p>Code Igniter also has some built-in benchmarking tools:\n<a href="http://codeigniter.com/user_guide/general/profiling.html" rel="noreferrer">http://codeigniter.com/user_guide/general/profiling.html</a></p>\n'}, {'answer_id': 13577, 'author': 'Theo', 'author_id': 1109, 'author_profile': 'https://Stackoverflow.com/users/1109', 'pm_score': 2, 'selected': False, 'text': '<p>If your site is database-driven I would be very surprised if your bottleneck would be the application framework. "Fast" as in faster development is what I would worry about rather than "fast" as in speedy handling of requests. Significant optimization is better done by caching strategies and optimizing your database access.</p>\n\n<p>Besides database access your own code will be where most of the time for each request is spent (and even that is usually not significant compared to database access), the framework will likely not be affecting the time spent on a request, unless it is really badly written.</p>\n\n<p>It way be better to look for a framework which has good caching support (which Code Igniter may have, I don\'t know), that will almost always save you more time than the few milliseconds you could shave off the request handling by using a slightly faster framework.</p>\n\n<p>Have a look at the Zend Framework too, it has the benefit of being PHP 5, whereas Code Igniter is still PHP 4, as I understand it. That may be an issue when it comes to speed, but in favor of which framework I don\'t know. Zend has good caching support and a database profiler that can help you find where your bottlenecks are.</p>\n'}, {'answer_id': 13582, 'author': 'Polsonby', 'author_id': 137, 'author_profile': 'https://Stackoverflow.com/users/137', 'pm_score': 3, 'selected': False, 'text': "<p>Yes, the problem is you have to build your application to profile it. </p>\n\n<p>At work we had a couple of projects written outside which we load-tested before putting them on our main boxes. We were quite surprised to find critical performance problems with both; one was written in CakePHP and the other was written using Drupal. I don't think this highlights a problem with any framework or CMS other than the need to do profiling and load-testing on any site which is going to get significant traffic. In both cases it was what the developer had done, rather than the characteristics of the software platform, that caused the problem. For example, there was a recursive function call the developer had created in the Cake project which instantiated the entire Cake object every recursion and this would have taken out the server had it gone live under load.</p>\n\n<p>In my opinion performance should not be a deciding factor in choosing a framework; the objective differences are likely to be marginal and the way you use it is likely to cause far more performance problems than the inherent performance of the framework.</p>\n\n<p>I believe that to scale any PHP application to run under load, you will need an opcode cache and you'll need to write in intelligent content caching using something like memcached or whatever built-in caching your framework supports. </p>\n"}, {'answer_id': 1081226, 'author': 'pbreitenbach', 'author_id': 42048, 'author_profile': 'https://Stackoverflow.com/users/42048', 'pm_score': 1, 'selected': False, 'text': '<p>CodeIgniter is plenty fast for most projects. Some have posted here and if you Google, you will find that it compares favorably to other frameworks with respect to speed.</p>\n\n<p>I would agree with another poster that performance is usually not a big concern when it comes to framework choice. The major frameworks all have sufficient performance for most projects.</p>\n'}, {'answer_id': 5424305, 'author': 'Mlynch1985', 'author_id': 674193, 'author_profile': 'https://Stackoverflow.com/users/674193', 'pm_score': 1, 'selected': False, 'text': "<p>I maintain a site that gets slammed a few times a year.  Last year the development team rewrote the entire site using Codeigniter and we have had much luck in terms of performance.  Additionally, the time it took to perform the rewrite was minimal as this framework is quite easy to work with.  CakePHP in my opinion is also a good choice if you find that you don't like Codeigniter.</p>\n"}, {'answer_id': 22062272, 'author': 'Sohail xIN3N', 'author_id': 1809895, 'author_profile': 'https://Stackoverflow.com/users/1809895', 'pm_score': 1, 'selected': False, 'text': '<p>For CodeIgniter and other PHP frameworks, <strong>PHP Quick Profiler</strong> is very handy for benchmarking and measuring speed especially for database queries. You must check this out:\n<a href="http://www.particletree.com/features/php-quick-profiler/" rel="nofollow">php-quick-profiler</a></p>\n\n<p>It\'s very easy to install and provides an awesome GUI for examine different benchmarking tests. </p>\n'}]
['https://Stackoverflow.com/questions/13293', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1384652/']