From ca75091fc72224a5f46f95564578a20b88543458 Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Tue, 15 Feb 2011 12:06:44 -0300 Subject: Remove identity map from benchmark script. --- activerecord/examples/performance.rb | 7 ------- 1 file changed, 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' } -- cgit v1.2.3