Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove identity map from benchmark script.

  • Loading branch information...
commit ca75091fc72224a5f46f95564578a20b88543458 1 parent 8ee0b44
@miloops miloops authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 activerecord/examples/performance.rb
View
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' }
Please sign in to comment.
Something went wrong with that request. Please try again.