Sha256: bcf6b872dbf042bf8ee8bca5905aef790ab8da144de9ed8f702fe39a4acf40f4
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
require "rubygems" require "surpass" strings = File.read("spec/data/random-strings.txt").split("\n") book = Workbook.new s = book.add_sheet('0') colcount = 100 + 1 rowcount = 100 + 1 start = Time.now puts "starting at #{start.to_s}" colcount.times do |c| rowcount.times do |r| i = c * rowcount + r s.write(r, c, strings[i]) end end t = Time.now - start puts "time elapsed (writing data to workbook) #{t.to_s}" book.save(__FILE__.gsub(/rb$/, "xls")) t = Time.now - start puts "time elapsed (writing workbook to file) #{t.to_s}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
surpass-0.0.6 | examples/big-random-strings.rb |
surpass-0.0.3 | examples/big-random-strings.rb |