Sha256: bbbf8d982578eafb25fc3e8df5e0e5f356c4a3c3e1e10c444d05681d53d380fe
Contents?: true
Size: 507 Bytes
Versions: 5
Compression:
Stored size: 507 Bytes
Contents
require_relative 'init' HEADERS = ["id", "name", "age", "date", "random"] DATA = [] 20_000.times do |n| DATA << [n, "String string #{n}" * 5, (n * rand * 10).round, Time.at(n * 1000 + 1492922688), n * 100] end Benchmark.ips do |x| x.config(time: 10, warmup: 2) x.report("FastExcel") do write_fast_excel_20k end x.report("Axlsx") do write_axlsx_20k end x.report("write_xlsx") do write_xlsx_20k end x.report("xlsxtream") do write_xlsxtream_20k end x.compare! end
Version data entries
5 entries across 5 versions & 1 rubygems