Sha256: aaca8da8bc530798b953329fe6ef89e37ca079ac3880fa93d5c8a8111f43ee08

Contents?: true

Size: 326 Bytes

Versions: 16

Compression:

Stored size: 326 Bytes

Contents

#!/usr/bin/env ruby -KU
require File.dirname(__FILE__) + '/extras'
require 'ruby-prof'

# RubyProf.measure_mode = RubyProf::MEMORY
GC.disable
RubyProf.start
100.times do
  Post.find(slug = POSTS.rand)
end
result = RubyProf.stop
GC.enable
printer = RubyProf::CallTreePrinter.new(result)
printer.print(File.new("prof.txt", "w"))

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
cmassimo-friendly_id-3.0.4.2 extras/prof.rb
friendly_id-3.0.6 extras/prof.rb
friendly_id-3.0.5 extras/prof.rb
friendly_id-3.0.4 extras/prof.rb
friendly_id-3.0.3 extras/prof.rb
friendly_id-3.0.2 extras/prof.rb
friendly_id-3.0.1 extras/prof.rb
friendly_id-3.0.0 extras/prof.rb
friendly_id-3.0.0.beta3 extras/prof.rb
friendly_id-3.0.0.beta2 extras/prof.rb
friendly_id-3.0.0.beta1 extras/prof.rb
friendly_id-2.3.4 extras/prof.rb
friendly_id-2.3.3 extras/prof.rb
friendly_id-2.3.2 extras/prof.rb
friendly_id-2.3.1 extras/prof.rb
friendly_id-2.3.0 extras/prof.rb