Sha256: e5cd78f10180f0cbb174ebc2d79a46bb8fce3d103f26dbe46734eadfa7df9ef9

Contents?: true

Size: 459 Bytes

Versions: 106

Compression:

Stored size: 459 Bytes

Contents

require 'viiite'
require 'msgpack'

data = MessagePack.pack(:hello => 'world', :nested => ['structure', {:value => 42}])

Viiite.bench do |b|
  b.range_over([10_000, 100_000, 1000_000], :runs) do |runs|
    b.report(:strings) do
      runs.times do
        MessagePack.unpack(data)
      end
    end

    b.report(:symbols) do
      options = {:symbolize_keys => true}
      runs.times do
        MessagePack.unpack(data, options)
      end
    end
  end
end

Version data entries

106 entries across 106 versions & 3 rubygems

Version Path
msgpack-1.5.3 bench/unpack.rb
msgpack-1.5.2 bench/unpack.rb
msgpack-1.5.1 bench/unpack.rb
msgpack-1.5.0 bench/unpack.rb
msgpack-1.4.5 bench/unpack.rb
msgpack-1.4.4 bench/unpack.rb
msgpack-1.4.3 bench/unpack.rb
msgpack-1.4.2 bench/unpack.rb
msgpack-1.4.0.pre1 bench/unpack.rb
msgpack-1.3.3-x64-mingw32 bench/unpack.rb
msgpack-1.3.3-x86-mingw32 bench/unpack.rb
msgpack-1.3.3 bench/unpack.rb
msgpack-1.3.2-x64-mingw32 bench/unpack.rb
msgpack-1.3.2-x86-mingw32 bench/unpack.rb
msgpack-1.3.2 bench/unpack.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/msgpack-1.3.1/bench/unpack.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/msgpack-1.3.1/bench/unpack.rb
msgpack-1.3.1-x64-mingw32 bench/unpack.rb
msgpack-1.3.1-x86-mingw32 bench/unpack.rb
msgpack-1.3.1 bench/unpack.rb