Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

About PHP #1

Closed
Closed

Description

@asadkn

One thing you have to understand about PHP is nobody except the shared webhosts use the technologies you're using.

First of all, any serious PHP app should be using APC by default. It's the nature of how PHP works by default vs other language deployments. Second, use php-fpm + nginx web server (or at least worker mpm in Apache 2.4 with php-fpm or fastcgi).

Activity

  1. CHH commented on Mar 28, 2013

    @CHH

    +1

  2. hassankhan commented on Mar 28, 2013

    @hassankhan

    And add Zend benchmarks too, please 😄

  3. Nazariy commented on Mar 29, 2013

    @Nazariy

    I understand that purpose of this benchmark was to compare your library with other solutions, but I believe PHP was not tested fairly.

    1. 5.3 has reached end of life and 5.4 or 5.5 branch should be used instead. From my observation, applications on 5.4 perform much better and consume less memory comparing to 5.3 version, I have not tested 5.5 but it should not be worst than previous.
    2. PDO is a bit slower, as it has higher abstraction layer comparing to MySQLi, which is more suitable to be called RAW.
    3. It's important to state how do you run PHP on Apache server, as performance may vary, in my case DSO was 5 times faster than FastCGI.
    4. Why did you chose a CakePHP? It's cute but it is not that type of framework that can be considered as good choice for a serious project. Instead I would look in to Zend, Symfony or YII.
  4. onigoetz commented on Mar 29, 2013

    @onigoetz

    I also think the choice of cakePHP is very bad. it's quite well known that it's one of the slowest framework in the php world.

    these benchmarks are not really recent but they give a good idea : http://symfony2.openthinklabs.com/home/cepat
    (based on this code : https://github.com/fabpot/framework-benchs)

    I also made a more up-to-date version : https://github.com/onigoetz/framework-benchs and found that codeIgniter is even faster.

    I did not update these benchmarks for a long time but I think running them now would give more or less the same results.

    I would also test Laravel 4 as I heard it is faster than codeIgniter

  5. alexbilbie commented on Mar 29, 2013

    @alexbilbie

    +1

  6. added a commit that references this issue on Apr 23, 2013
  7. added a commit that references this issue on Oct 12, 2013
  8. added a commit that references this issue on Jan 16, 2014
  9. added a commit that references this issue on Jun 12, 2014
  10. added a commit that references this issue on Jun 4, 2015
  11. added a commit that references this issue on Jun 12, 2015
  12. added a commit that references this issue on Mar 11, 2016
  13. 4 remaining items

  14. added a commit that references this issue on Oct 8, 2019
  15. added a commit that references this issue on Nov 4, 2019
  16. added a commit that references this issue on Dec 17, 2020
  17. added a commit that references this issue on Apr 13, 2021
  18. added a commit that references this issue on Jul 12, 2023
  19. added a commit that references this issue on Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions