Permalink
Browse files

Remove identity map from benchmark script.

  • Loading branch information...
miloops committed Feb 15, 2011
1 parent 8ee0b44 commit ca75091fc72224a5f46f95564578a20b88543458
Showing with 0 additions and 7 deletions.
  1. +0 −7 activerecord/examples/performance.rb
@@ -73,16 +73,9 @@ def self.email
)
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' }

0 comments on commit ca75091

Please sign in to comment.