Sha256: dc5d3ca173867348fdb1e95d5873ea030e35594c26612c11714b67bdc06df6cd
Contents?: true
Size: 676 Bytes
Versions: 7
Compression:
Stored size: 676 Bytes
Contents
# bundle exec ruby-prof --printer=graph_html # --file=../results.html # --require 'ruby-progressbar' # --sort=total ./spec/fixtures/benchmark.rb total = 100_000 # output = File.open('/Users/jfelchner/Downloads/benchmark.txt', 'w+') output = $stdout # Progressbar gem # bar = ProgressBar.new('Progress', total) # # total.times do |i| # bar.inc # end # # bar.finish # Ruby/ProgressBar bar = ProgressBar.create(:output => output, :length => 80, :start => 0, :total => total) total.times do |_i| # bar.log i bar.increment end
Version data entries
7 entries across 7 versions & 3 rubygems