Welcome Guest, Not a member yet? Register   Sign In
RapidDataMapper, a new Object-Relational-Mapper
#33

[eluser]m4rw3r[/eluser]
I've made a very simple performance comparison between Doctrine and RDM:

Result: RDM is about equal in performance when it comes to extracting a whole object graph or multiple objects, but it is very fast when fetching a single row.

Objects:
Code:
Country:
  id
  name

Region:
  id
  name
  country_id

City
  id
  name
  country_id
  region_id

Tests

Object Graph:

Fetch the country Sweden, all its regions and their corresponding cities (which means 239 rows with all joined through LEFT JOINs).
10 repetitions, to get it below 30 seconds all times (goes for both RDM and Doctrine).

Single object:

Fetching a single row from the country table with the id 23 (and no caching was allowed).
1000 repetitions.

Multiple objects:

Fetching all related regions to the country with the id 23.
1000 repetitions.

Results
In seconds

RDM:

Object Graph: 16.068867921829
Single Object: 1.3140540122986
Multiple Objects: 2.9177198410034

Doctrine:

Object Graph: 16.564059019089
Single Object: 17.68523812294
Multiple Objects: 2.5408611297607

CI's AR:

Object Graph: 0.16973185539246 (Not really comparable, because it fetches a single row for each country-region-city combination)
Single Object: 2.1052830219269
Multiple Objects: 2.3604340553284

(Have no idea what happened in the Single Object fetch for Doctrine, I just used Doctrine_Core->getTable('Country')->find(23)Wink

NOTE: No caching has been used, not by RDM nor by Doctrine (unless doctrine does some caching without the user's knowledge).

PS. I have not done any specific performance optimizations for RDM during any of the stages in development, so this speed is currently inherent to its design Wink
But I think I will do some soon, fetching large object graphs was hard work and I had to go down to below 10 iterations to get it under 30 all times (for both Doctrine and RDM).


Messages In This Thread
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-13-2009, 07:24 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-14-2009, 03:12 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-14-2009, 07:42 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-14-2009, 10:40 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-14-2009, 10:49 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-14-2009, 11:34 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-15-2009, 03:38 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-15-2009, 11:42 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 01:07 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 01:22 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 01:47 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 01:59 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 02:02 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 02:54 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 02:57 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 03:19 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 03:38 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 03:57 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 04:54 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 04:58 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 05:07 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-17-2009, 08:54 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-18-2009, 05:44 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-18-2009, 08:11 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-20-2009, 10:18 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-20-2009, 06:15 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-21-2009, 07:45 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-21-2009, 09:15 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-21-2009, 09:17 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-21-2009, 09:43 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-21-2009, 10:16 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-22-2009, 04:03 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-23-2009, 08:25 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-24-2009, 08:26 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-24-2009, 08:35 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-29-2009, 11:51 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-29-2009, 01:37 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-30-2009, 08:15 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-30-2009, 10:16 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 12-31-2009, 05:16 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 01-04-2010, 03:24 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 01-04-2010, 04:13 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 01-04-2010, 04:22 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 01-04-2010, 05:01 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 01-08-2010, 03:09 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 01-16-2010, 07:25 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 01-16-2010, 07:35 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 02-05-2010, 01:33 PM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 02-20-2010, 07:18 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 02-20-2010, 07:28 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 03-03-2010, 03:46 AM
RapidDataMapper, a new Object-Relational-Mapper - by El Forum - 03-04-2010, 09:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB