Sha256: fe3ddd9354508e551b178e2893dbf0bdde2cc782df7895cc43d0257587c4548f
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
#!/usr/bin/env ruby require 'mastalk' require 'ruby-prof' cms_page_content = File.read(File.join('spec', 'fixtures', 'cms_page_content')) PAGES_SIZE = 500 puts '*' * 80 puts "Profiling: parsing #{PAGES_SIZE} pages." puts '*' * 80 result = RubyProf.profile do PAGES_SIZE.times do Mastalk::Document.new(cms_page_content).to_html end end printer = RubyProf::MultiPrinter.new(result) printer.print(path: 'profiling_results', profile: 'mastalk_profiling')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mastalk-0.9.1 | bin/mastalk-profiling |
mastalk-0.9.0 | bin/mastalk-profiling |