aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-11-18 11:17:57 -0300
committerEmilio Tagua <miloops@gmail.com>2010-11-19 19:09:00 -0300
commit54f924c313f4f2050549665ca608172a4564abab (patch)
tree1fdaffcf430c99e8136a2e982e6bc323ea0656dc /activerecord
parentb626f3e1ec033ef69ff7aeee1c11297079824db5 (diff)
downloadrails-54f924c313f4f2050549665ca608172a4564abab.tar.gz
rails-54f924c313f4f2050549665ca608172a4564abab.tar.bz2
rails-54f924c313f4f2050549665ca608172a4564abab.zip
Enable IM in performance script unless IM=disabled is set when running it.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/examples/performance.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/examples/performance.rb b/activerecord/examples/performance.rb
index c4ce361b5d..e6bbb3977a 100644
--- a/activerecord/examples/performance.rb
+++ b/activerecord/examples/performance.rb
@@ -92,6 +92,8 @@ else
`#{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