Sha256: 7e14fa8ccc41afa9f0b6bbf449ad7a4beef4d6faaf5b55277b08c363aa0ba761

Contents?: true

Size: 333 Bytes

Versions: 6

Compression:

Stored size: 333 Bytes

Contents

#!/usr/bin/env ruby -wW1

$: << '../lib'
$: << '../ext'

if __FILE__ == $0
  while (i = ARGV.index('-I'))
    x,path = ARGV.slice!(i, 2)
    $: << path
  end
end

require 'ox'

def dump(cnt = 10000)
  h = { }
  cnt.times do |i|
    h[i] = [i * 2, "this is #{i}"]
  end
  xml = Ox.dump(h)
  puts "size: #{xml.size}"
end

dump(200000)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ox-1.4.4 test/big.rb
ox-1.4.2 test/big.rb
ox-1.2.14 test/big.rb
ox-1.2.13 test/big.rb
ox-1.2.9 test/big.rb
ox-1.2.7 test/big.rb