#!/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)