Sha256: 0b4a087bec27589f04d52ca3669805172b71408c60651f9c9be96352d0923fa7

Contents?: true

Size: 526 Bytes

Versions: 255

Compression:

Stored size: 526 Bytes

Contents

#!/usr/bin/env ruby

require 'rbbt-util'
require 'rbbt/util/simpleopt'

$0 = "rbbt #{$previous_commands*""} #{ File.basename(__FILE__) }" if $previous_commands

options = SOPT.setup <<EOF
Monitor throughput

$ rbbt tsv throughput 

Display summary information. Works with Tokyocabinet HDB and BDB as well.

-h--help Help
EOF

SOPT.usage if options[:help]

start = Time.now
count = 0
max = 0
avg = 0
all = []
scale = 5
bar = Log::ProgressBar.new_bar nil, :desc => "Throughput"

while line = STDIN.gets
  bar.tick
end

bar.done

Version data entries

255 entries across 255 versions & 1 rubygems

Version Path
rbbt-util-6.0.3 share/rbbt_commands/benchmark/throughput
rbbt-util-5.44.1 share/rbbt_commands/benchmark/throughput
rbbt-util-5.43.0 share/rbbt_commands/benchmark/throughput
rbbt-util-5.42.0 share/rbbt_commands/benchmark/throughput
rbbt-util-5.41.1 share/rbbt_commands/benchmark/throughput
rbbt-util-5.41.0 share/rbbt_commands/benchmark/throughput
rbbt-util-5.40.5 share/rbbt_commands/benchmark/throughput
rbbt-util-5.40.4 share/rbbt_commands/benchmark/throughput
rbbt-util-5.40.3 share/rbbt_commands/benchmark/throughput
rbbt-util-5.40.0 share/rbbt_commands/benchmark/throughput
rbbt-util-5.39.0 share/rbbt_commands/benchmark/throughput
rbbt-util-5.38.1 share/rbbt_commands/benchmark/throughput
rbbt-util-5.38.0 share/rbbt_commands/benchmark/throughput
rbbt-util-5.37.16 share/rbbt_commands/benchmark/throughput
rbbt-util-5.37.15 share/rbbt_commands/benchmark/throughput
rbbt-util-5.37.14 share/rbbt_commands/benchmark/throughput
rbbt-util-5.37.13 share/rbbt_commands/benchmark/throughput
rbbt-util-5.37.12 share/rbbt_commands/benchmark/throughput
rbbt-util-5.37.11 share/rbbt_commands/benchmark/throughput
rbbt-util-5.37.10 share/rbbt_commands/benchmark/throughput