Permalink
Browse files

Enable IM in performance script unless IM=disabled is set when runnin…

…g it.
  • Loading branch information...
1 parent b626f3e commit 54f924c313f4f2050549665ca608172a4564abab @miloops miloops committed Nov 18, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/examples/performance.rb
@@ -92,6 +92,8 @@ def self.feel(exhibits) exhibits.each { |e| e.feel } end
`#{mysqldump_bin} -u #{conn[:username]} #{"-p#{conn[:password]}" unless conn[:password].blank?} #{conn[:database]} exhibits users > #{sqlfile}`
end
+ActiveRecord::IdentityMap.enabled = true unless ENV['IM'] == "disabled"
+
RBench.run(TIMES) do
column :times
column :ar

0 comments on commit 54f924c

Please sign in to comment.