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

Version Path
caxlsx-3.1.1 test/profile.rb
caxlsx-3.1.0 test/profile.rb
bonio-axlsx-2.2.3 test/profile.rb
caxlsx-3.0.4 test/profile.rb
caxlsx-3.0.3 test/profile.rb
caxlsx-3.0.2 test/profile.rb
caxlsx-2.0.2 test/profile.rb
caxlsx-3.0.1 test/profile.rb
caxlsx-3.0.0 test/profile.rb
axlsx-alt-3.0.1 test/profile.rb
axlsx-alt-3.0.0 test/profile.rb
axlsx-3.0.0.pre test/profile.rb
bonio-axlsx-2.2.2 test/profile.rb
bonio-axlsx-2.2.1 test/profile.rb
dg-axlsx-2.1.0 test/profile.rb
axlsx-2.1.0.pre test/profile.rb
l_axlsx-2.0.1 test/profile.rb
axlsx-2.0.1 test/profile.rb
axlsx-2.0.0 test/profile.rb