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.3.17 test/test_parse_write.rb
rubyXL-3.3.16 test/test_parse_write.rb
rubyXL-3.3.15 test/test_parse_write.rb
rubyXL-3.3.14 test/test_parse_write.rb
rubyXL-3.3.13 test/test_parse_write.rb
rubyXL-3.3.12 test/test_parse_write.rb
rubyXL-3.3.11 test/test_parse_write.rb
rubyXL-3.3.10 test/test_parse_write.rb
rubyXL-3.3.9 test/test_parse_write.rb
rubyXL-3.3.8 test/test_parse_write.rb
rubyXL-3.3.7 test/test_parse_write.rb
rubyXL-3.3.6 test/test_parse_write.rb
rubyXL-3.3.5 test/test_parse_write.rb
rubyXL-3.3.4 test/test_parse_write.rb
rubyXL-3.3.3 test/test_parse_write.rb
rubyXL-3.3.2 test/test_parse_write.rb
rubyXL-3.3.1 test/test_parse_write.rb
rubyXL-3.3.0 test/test_parse_write.rb
rubyXL-3.2.7 test/test_parse_write.rb
rubyXL-3.2.6 test/test_parse_write.rb