<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -195,49 +195,49 @@ puts &quot;Benchmarks will now run #{TIMES} times&quot;
 RBench.run(TIMES) do
 
   column :times
-  column :dm, :title =&gt; &quot;DM #{DataMapper::VERSION}&quot;
   column :ar, :title =&gt; &quot;AR 2.1&quot;
-  column :diff, :compare =&gt; [:dm,:ar]
+  column :dm, :title =&gt; &quot;DM #{DataMapper::VERSION}&quot;
+  column :diff, :compare =&gt; [:ar,:dm]
 
   report &quot;Model.new (instantiation)&quot; do
-    dm { Exhibit.new }
     ar { ARExhibit.new }
+    dm { Exhibit.new }
   end
 
   report &quot;Model.new (setting attributes)&quot; do
     attrs = {:name =&gt; 'sam', :zoo_id =&gt; 1}
-    dm { Exhibit.new(attrs) }
     ar { ARExhibit.new(attrs) }
+    dm { Exhibit.new(attrs) }
   end
 
   report &quot;Model.get specific (not cached)&quot; do
-    dm { touch_attributes[Exhibit.get(1)] }
     ActiveRecord::Base.uncached { ar { touch_attributes[ARExhibit.find(1)] } }
+    dm { touch_attributes[Exhibit.get(1)] }
   end
 
   report &quot;Model.get specific (cached)&quot; do
-    Exhibit.repository(:default) { dm { touch_attributes[Exhibit.get(1)]    } }
     ActiveRecord::Base.cache    { ar { touch_attributes[ARExhibit.find(1)] } }
+    Exhibit.repository(:default) { dm { touch_attributes[Exhibit.get(1)] } }
   end
 
   report &quot;Model.first&quot; do
-    dm { touch_attributes[Exhibit.first]   }
     ar { touch_attributes[ARExhibit.first] }
+    dm { touch_attributes[Exhibit.first] }
   end
 
   report &quot;Model.all limit(100)&quot;, (TIMES / 10.0).ceil do
-    dm { touch_attributes[Exhibit.all(:limit =&gt; 100)] }
     ar { touch_attributes[ARExhibit.find(:all, :limit =&gt; 100)] }
+    dm { touch_attributes[Exhibit.all(:limit =&gt; 100)] }
   end
 
   report &quot;Model.all limit(100) with relationship&quot;, (TIMES / 10.0).ceil do
-    dm { touch_relationships[Exhibit.all(:limit =&gt; 100)] }
     ar { touch_relationships[ARExhibit.all(:limit =&gt; 100, :include =&gt; [:user])] }
+    dm { touch_relationships[Exhibit.all(:limit =&gt; 100)] }
   end
 
   report &quot;Model.all limit(10,000)&quot;, (TIMES / 1000.0).ceil do
-    dm { touch_attributes[Exhibit.all(:limit =&gt; 10_000)] }
     ar { touch_attributes[ARExhibit.find(:all, :limit =&gt; 10_000)] }
+    dm { touch_attributes[Exhibit.all(:limit =&gt; 10_000)] }
   end
 
   create_exhibit = {
@@ -248,38 +248,33 @@ RBench.run(TIMES) do
   }
 
   report &quot;Model.create&quot; do
-    dm { Exhibit.create(create_exhibit)   }
     ar { ARExhibit.create(create_exhibit) }
+    dm { Exhibit.create(create_exhibit) }
   end
 
   report &quot;Resource#attributes&quot; do
     attrs_first  = {:name =&gt; 'sam', :zoo_id =&gt; 1}
     attrs_second = {:name =&gt; 'tom', :zoo_id =&gt; 1}
-    dm { e = Exhibit.new(attrs_first); e.attributes = attrs_second }
     ar { e = ARExhibit.new(attrs_first); e.attributes = attrs_second }
+    dm { e = Exhibit.new(attrs_first); e.attributes = attrs_second }
   end
 
   report &quot;Resource#update&quot; do
-    dm { e = Exhibit.get(1); e.name = 'bob'; e.save   }
-    ar { e = ARExhibit.find(1); e.name = 'bob'; e.save  }
+    ar { e = ARExhibit.find(1); e.name = 'bob'; e.save }
+    dm { e = Exhibit.get(1); e.name = 'bob'; e.save }
   end
 
   report &quot;Resource#destroy&quot; do
-    dm { Exhibit.first.destroy }
     ar { ARExhibit.first.destroy }
+    dm { Exhibit.first.destroy }
   end
 
   report &quot;Model.transaction&quot; do
-    dm { Exhibit.transaction do
-      Exhibit.new
-    end }
-    ar { ARExhibit.transaction do
-      ARExhibit.new
-    end }
+    ar { ARExhibit.transaction { ARExhibit.new } }
+    dm { Exhibit.transaction { Exhibit.new } }
   end
 
   summary &quot;Total&quot;
-
 end
 
 connection = adapter.send(:create_connection)</diff>
      <filename>script/performance.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9570d18f15398f7c4aaee08a775f0d4f934df0cc</id>
    </parent>
  </parents>
  <author>
    <name>Dan Kubb</name>
    <email>dan.kubb@autopilotmarketing.com</email>
  </author>
  <url>http://github.com/sam/dm-core/commit/605082cd4d78063124669161e42213297576b483</url>
  <id>605082cd4d78063124669161e42213297576b483</id>
  <committed-date>2008-10-05T00:10:09-07:00</committed-date>
  <authored-date>2008-10-05T00:10:09-07:00</authored-date>
  <message>Updated benchmark script to show diff between DM and AR more clearly

* Simply reversed how the stats are displayed in the chart.  AR is now
  used as a baseline instead of DM.  The extra DIFF column now shows how
  much faster DM is over AR, rather than how much slower than AR is
  compared to DM.  For example, instead of displaying that DM takes
  0.05x (5%) as much time as AR to perform a task, it will now show AR
  takes 20x as long as DM to perform the task.  Given that DM is faster
  than AR in almost all respects, this is a better way to represent the
  differences.</message>
  <tree>76b51e23c3d4bfd953dc070dd5e21caba6590043</tree>
  <committer>
    <name>Dan Kubb</name>
    <email>dan.kubb@autopilotmarketing.com</email>
  </committer>
</commit>
