Sha256: e3e5c72b0d9817c4754f146941b78b8d7ce23ad86d9b71149073a51cc67f2e2d
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 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("Axslx") do write_axslx_20k end x.report("write_xlsx") do write_xlsx_20k end x.compare! end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fast_excel-0.2.0 | benchmarks/20k_rows.rb |