Sha256: e31f61e765baa0d3a3beda1f242668074fa4e40817c88624b4a1c7f534b4d8ef
Contents?: true
Size: 526 Bytes
Versions: 19
Compression:
Stored size: 526 Bytes
Contents
#!/usr/bin/env ruby -s $:.unshift "#{File.dirname(__FILE__)}/../lib" require 'axlsx' require 'ruby-prof' #RubyProf.measure_mode = RubyProf::MEMORY # row = [] # Taking worst case scenario of all string data input = (32..126).to_a.pack('U*').chars.to_a 20.times { row << input.shuffle.join} profile = RubyProf.profile do p = Axlsx::Package.new p.workbook.add_worksheet do |sheet| 10000.times do sheet << row end end p.to_stream end printer = RubyProf::FlatPrinter.new(profile) printer.print(STDOUT, {})
Version data entries
19 entries across 19 versions & 6 rubygems