If I used Code Igniter or the Cake Framework, will it affect the performance of my application?
Possible disadvantages: (Sometime depends on your project)
- Different framework have different coding convention. You have to learn these
- Sometime you’ll not find any library which might be useful for you.
- Not for small projects. Simple project custom coding will work faster than setting up a framework.
- Extra overhead may affect performance
- Not necessarily more secure (you'll need to pay attention to updates and such)
- Much, much harder to customize
- Takes time to learn and master
If you want to compare different frameworks.
Look here, PHP framework comparison benchmarks.
But, if you need very fast performance, I would advise Yii because of its awesome performance.:
If you define performance as speed of execution, then the answer is
- Yes, it will degrade performance - always.
Frameworks offer abstractions over PHP's native functions. Whenever you put an abstraction onto something, you incur the penalty of loading the abstraction and invoking it's functions. Frameworks are usually general abstractions, that cater to a lot of UseCases. Solving a specific UseCase in your application can likely be solved with less abstraction.
But with frameworks you gain better modularization, faster development times (if you know the framework), better maintainability and (hopefully) tested code, which is usually worth it. That's not to say, always use a framework, but always consider the tradeoff - then decide.
As for benchmarks, well, have a look at
Take a look at these two answers:
One on benefits and disadvantages of frameworks
One on benchmark comparisons of frameworks, and how they are all but meaningless