PHP object benchmarks vs database query
Hello there, I was wondering how PHP's object creation/method calls benchmark is compared to database query. I've heard that in most PHP applications the real benchmark is associated with database CRUD operations, but still I wanna know how big this benchmark is compared to creating objects/calling methods. Lets say I have one select query to perform(without join), and a script that creates n objects, how big a number n should be so that the time it takes to execute the query is equivalent to creation of n objects? In a word, how many objects instantiation is equivalent to running a DB select query in terms of time/benchmark? What if the query involves a join statement and more complex where clause? Please lemme know if anyone of you have ever done this comparison, thanks.