Brian Lacy
Brian Lacy

Reputation: 19098

Benchmarks of PHP ORMs? or Good Test Cases

Are there any good performance benchmarks published out there for available PHP ORMs, such as Doctrine, Propel, and Outlet?

If not, what are some good test cases so I can test them myself?

Other ORMs I'd be interested in comparing:

Upvotes: 2

Views: 913

Answers (2)

seven
seven

Reputation: 2607

You could try this test suite, also here are the results as of 09/2011: http://code.google.com/p/php-orm-benchmark/

What I have found out by running own tests with own basic ORM implementation, it adds cca 30% overhead in execution time, and cca 80% in number of function calls.

Upvotes: 0

Brent Baisley
Brent Baisley

Reputation: 12721

Doctrine is one of the most well regarded PHP base ones out there. But you can't really benchmark ORMs. All of them will have performance issues when they create a useless JOIN or a bad query, which all of them will do eventually.

In the end, they all just try to create a SQL query for you. How well they do it, is the difference. It's worthwhile to learn SQL if you have more than a few basic tables.

Upvotes: 3

Related Questions