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

Version Path
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/ruby-progressbar-1.8.1/spec/fixtures/benchmark.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/ruby-progressbar-1.8.1/spec/fixtures/benchmark.rb
progressbar-1.8.2 spec/fixtures/benchmark.rb
progressbar-1.8.1 spec/fixtures/benchmark.rb
ruby-progressbar-1.8.1 spec/fixtures/benchmark.rb
ruby-progressbar-1.8.0 spec/fixtures/benchmark.rb
ruby-progressbar-1.7.5 spec/fixtures/benchmark.rb