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.4.3 test/test_parse_write.rb
rubyXL-3.4.2 test/test_parse_write.rb
rubyXL-3.4.1 test/test_parse_write.rb
rubyXL-3.4.0 test/test_parse_write.rb
rubyXL-3.3.33 test/test_parse_write.rb
rubyXL-3.3.31 test/test_parse_write.rb
rubyXL-3.3.30 test/test_parse_write.rb
rubyXL-3.3.29 test/test_parse_write.rb
rubyXL-ptr-3.3.27 test/test_parse_write.rb
rubyXL-3.3.28 test/test_parse_write.rb
rubyXL-3.3.27 test/test_parse_write.rb
rubyXL-3.3.26 test/test_parse_write.rb
rubyXL-3.3.25 test/test_parse_write.rb
rubyXL-3.3.24 test/test_parse_write.rb
rubyXL-3.3.23 test/test_parse_write.rb
rubyXL-3.3.22 test/test_parse_write.rb
rubyXL-3.3.21 test/test_parse_write.rb
rubyXL-3.3.20 test/test_parse_write.rb
rubyXL-3.3.19 test/test_parse_write.rb
rubyXL-3.3.18 test/test_parse_write.rb