Sha256: e033e869eb86497cfaa914cbbb58b0c954a780a06316ff9709ae58fc35f0a2b2
Contents?: true
Size: 468 Bytes
Versions: 157
Compression:
Stored size: 468 Bytes
Contents
# encoding: utf-8 $: << File.expand_path('../../../lib', __FILE__) require 'viiite' require 'msgpack' iterations = 10_000 data = MessagePack.pack(:hello => 'world', :nested => ['structure', {:value => 42}]) Viiite.bm do |b| b.report(:strings) do iterations.times do MessagePack.unpack(data) end end b.report(:symbols) do options = {:symbolize_keys => true} iterations.times do MessagePack.unpack(data, options) end end end
Version data entries
157 entries across 157 versions & 4 rubygems