benchmarks/1k_rows.rb in fast_excel-0.2.0 vs benchmarks/1k_rows.rb in fast_excel-0.2.1
- old
+ new
@@ -19,12 +19,12 @@
worksheet.write_row(i + 1, row)
end
workbook.read_string
end
- x.report("Axslx") do
- filename = "#{Dir.mktmpdir}/axslx.xslx"
+ x.report("Axlsx") do
+ filename = "#{Dir.mktmpdir}/axlsx.xlsx"
Axlsx::Package.new do |package|
package.use_autowidth = false
package.workbook.add_worksheet do |sheet|
sheet.add_row(HEADERS)
DATA.each do |row|
@@ -36,10 +36,10 @@
File.delete(filename)
end
end
x.report("write_xlsx") do
- filename = "#{Dir.mktmpdir}/write_xlsx.xslx"
+ filename = "#{Dir.mktmpdir}/write_xlsx.xlsx"
workbook = WriteXLSX.new(filename)
worksheet = workbook.add_worksheet
HEADERS.each_with_index do |value, i|
worksheet.write(0, i, value)
end