aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/examples
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2011-02-15 12:06:44 -0300
committerEmilio Tagua <miloops@gmail.com>2011-02-15 12:06:44 -0300
commitca75091fc72224a5f46f95564578a20b88543458 (patch)
tree29b35930cfdf469d43b42583292069592244ef5b /activerecord/examples
parent8ee0b4414890f919594c1a388d987b5b7364a505 (diff)
downloadrails-ca75091fc72224a5f46f95564578a20b88543458.tar.gz
rails-ca75091fc72224a5f46f95564578a20b88543458.tar.bz2
rails-ca75091fc72224a5f46f95564578a20b88543458.zip
Remove identity map from benchmark script.
Diffstat (limited to 'activerecord/examples')
-rw-r--r--activerecord/examples/performance.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/examples/performance.rb b/activerecord/examples/performance.rb
index 22f867d783..63822731d5 100644
--- a/activerecord/examples/performance.rb
+++ b/activerecord/examples/performance.rb
@@ -73,16 +73,9 @@ puts 'Inserting 10,000 users and exhibits...'
)
end
-ActiveRecord::IdentityMap.enabled = true unless ENV['IM'] == "disabled"
-
-def clear_identity_map!
- ActiveRecord::IdentityMap.clear
-end
-
require 'benchmark'
Benchmark.bm(46) do |x|
- clear_identity_map!
ar_obj = Exhibit.find(1)
attrs = { :name => 'sam' }
attrs_first = { :name => 'sam' }