Sha256: ab252d8b67fae90438521e7d03783b6ddccfdb18243b2ae2ace1decaa492e5cd
Contents?: true
Size: 281 Bytes
Versions: 3
Compression:
Stored size: 281 Bytes
Contents
$:.unshift File.expand_path('../lib', __FILE__) require 'benchmark' require 'logfmt' N = 1_000 line = 'foo=bar a=14 baz="hello kitty" ƒ=2h3s cool%story=bro f %^asdf' Benchmark.bm(20) do |x| x.report('char-by-char') do N.times do Logfmt.parse(line) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
logfmt-0.0.6 | bench.rb |
logfmt-0.0.5 | bench.rb |
logfmt-0.0.4 | bench.rb |