Sha256: ed70baba985715945891b91c4db1210627b46f789ea1b972a5482400e2b4c2b4

Contents?: true

Size: 226 Bytes

Versions: 6

Compression:

Stored size: 226 Bytes

Contents

$:.unshift(File.dirname(__FILE__)+"/../../lib")
require 'benchmark'
require 'bencode'

Benchmark.bmbm do |x|
  x.report("Encoding an array of integers") do
    100.times do
      ((1..50).to_a * 100).bencode
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bencode-1.0.0 test/benchmark/encoding.rb
bencode-0.8.2 test/benchmark/encoding.rb
bencode-0.8.1 test/benchmark/encoding.rb
bencode-0.8.0 test/benchmark/encoding.rb
bencode-0.7.0 test/benchmark/encoding.rb
bencode-0.6.0 test/benchmark/encoding.rb