Sha256: a07d812386484e6fa7057d1352d124e9c520f628a03ca042654ba087a035de91
Contents?: true
Size: 404 Bytes
Versions: 5
Compression:
Stored size: 404 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'honey_format' require 'benchmark/ips' require 'csv' # Assumes that you have a file "benchmark.csv" in your current directory csv = File.read('benchmark-20mb.csv') Benchmark.ips do |x| x.time = 10 x.warmup = 2 x.report('stdlib CSV') { CSV.parse(csv) } x.report('HoneyFormat::CSV') { HoneyFormat::CSV.new(csv).rows } x.compare! end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
honey_format-0.5.0 | bin/benchmark |
honey_format-0.4.0 | bin/benchmark |
honey_format-0.3.0 | bin/benchmark |
honey_format-0.2.1 | bin/benchmark |
honey_format-0.2.0 | bin/benchmark |