Sha256: d3327447bb700df1bc0afb6d9335d442d1e8a52e0196da90cfe07cd4be7d8a73

Contents?: true

Size: 467 Bytes

Versions: 51

Compression:

Stored size: 467 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

51 entries across 51 versions & 2 rubygems

Version Path
rubyXL-3.2.5 test/test_parse_write.rb
rubyXL-3.2.4 test/test_parse_write.rb
rubyXL-3.2.3 test/test_parse_write.rb
rubyXL-3.2.2 test/test_parse_write.rb
rubyXL-3.2.1 test/test_parse_write.rb
rubyXL-3.2.0 test/test_parse_write.rb
rubyXL-3.1.2 test/test_parse_write.rb
rubyXL-3.1.0 test/test_parse_write.rb
rubyXL-3.0.2 test/test_parse_write.rb
rubyXL-3.0.1 test/test_parse_write.rb
rubyXL-3.0.0 test/test_parse_write.rb