Skip to content

Commit ca75091

Browse files
committed
Remove identity map from benchmark script.
1 parent 8ee0b44 commit ca75091

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

activerecord/examples/performance.rb

-7
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,9 @@ def self.email
7373
)
7474
end
7575

76-
ActiveRecord::IdentityMap.enabled = true unless ENV['IM'] == "disabled"
77-
78-
def clear_identity_map!
79-
ActiveRecord::IdentityMap.clear
80-
end
81-
8276
require 'benchmark'
8377

8478
Benchmark.bm(46) do |x|
85-
clear_identity_map!
8679
ar_obj = Exhibit.find(1)
8780
attrs = { :name => 'sam' }
8881
attrs_first = { :name => 'sam' }

0 commit comments

Comments
 (0)