<commit_before># using this script to try figure out why Rails 2 is slower that 1.9
#
require 'objspace'
require 'benchmark'
require 'ruby-prof'

require File.expand_path(File.dirname(__FILE__) + "/../config/environment")


def profile_allocations(name)
  GC.disable
  initial_size = ObjectSpace.count_objects<commit_msg>playing with my script, feel free to ignore<commit_after># using this script to try figure out why Rails 2 is slower that 1.9
#
require 'objspace'
require 'benchmark'
# require 'ruby-prof'

require 'memory_profiler'


result = MemoryProfiler.report do
  require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
  # require 'ruby-prof'
end
result.pretty_print

exit


def profile_allocations(name)
  GC.disable
  initial_size = ObjectSpace.count_objects
{'fraction_non_alphanumeric': 0.0946969696969697, 'fraction_numerical': 0.007575757575757576, 'mean_word_length': 5.147286821705427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3259244', 'n_tokens_mistral': 253, 'n_tokens_neox': 240, 'n_words': 74}