<commit_before>require File.dirname(__FILE__) + '/../lib/typhoeus.rb'
require 'rubygems'
require 'ruby-prof'

calls = 50
url = "http://127.0.0.1:3000/"
Typhoeus.init_easy_object_pool

RubyProf.start
calls.times do |i|
  Typhoeus::Request.get(url+i.to_s)
end
result = RubyProf.stop

printer = RubyProf::FlatPrinter.new(result)
printer.print(STDOUT)<commit_msg>Fix profile script.<commit_after>require 'typhoeus'
require 'ruby-prof'

calls = 50
url = "http://127.0.0.1:3000/"

RubyProf.start
calls.times do |i|
  Typhoeus::Request.get(url+i.to_s)
end
result = RubyProf.stop

printer = RubyProf::FlatPrinter.new(result)
printer.print(STDOUT)
{'fraction_non_alphanumeric': 0.1536050156739812, 'fraction_numerical': 0.03761755485893417, 'mean_word_length': 5.454545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6224764', 'n_tokens_mistral': 286, 'n_tokens_neox': 259, 'n_words': 43}