Sha256: a5941909b035e8fc6ece2df79887075212770e500cccdf90e1c229275a595d32

Contents?: true

Size: 452 Bytes

Versions: 17

Compression:

Stored size: 452 Bytes

Contents

require 'rubyXL'
require 'benchmark'

spreadsheets = Dir.glob(File.join("test", "input", "*.xls?")).sort!

spreadsheets.each { |input|
  puts "<<<--- Parsing #{input}..."
  doc = nil
  tm = Benchmark.realtime { doc = RubyXL::Parser.parse(input) }
  puts "Elapsed: #{tm} sec"
  output = File.join("test", "output", File.basename(input))
  puts  "--->>> Writing #{output}..."
  tm = Benchmark.realtime { doc.write(output) }
  puts "Elapsed: #{tm} sec"
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rubyXL-3.4.23 test/test_parse_write.rb
rubyXL-3.4.22 test/test_parse_write.rb
rubyXL-3.4.21 test/test_parse_write.rb
rubyXL-3.4.20 test/test_parse_write.rb
rubyXL-3.4.18 test/test_parse_write.rb
rubyXL-3.4.17 test/test_parse_write.rb
rubyXL-3.4.16 test/test_parse_write.rb
rubyXL-3.4.15 test/test_parse_write.rb
rubyXL-3.4.14 test/test_parse_write.rb
rubyXL-3.4.12 test/test_parse_write.rb
rubyXL-3.4.11 test/test_parse_write.rb
rubyXL-3.4.10 test/test_parse_write.rb
rubyXL-3.4.9 test/test_parse_write.rb
rubyXL-3.4.8 test/test_parse_write.rb
rubyXL-3.4.6 test/test_parse_write.rb
rubyXL-3.4.5 test/test_parse_write.rb
rubyXL-3.4.4 test/test_parse_write.rb