mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove identity map from benchmark script.
This commit is contained in:
parent
8ee0b44148
commit
ca75091fc7
1 changed files with 0 additions and 7 deletions
|
@ -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' }
|
||||
|
|
Loading…
Reference in a new issue