Sha256: 6ac755f690953bf5cd60dfd4a0b658fd8d9f8a9c73f7cadb564b67c40aaf9df5

Contents?: true

Size: 656 Bytes

Versions: 70

Compression:

Stored size: 656 Bytes

Contents

require 'viiite'
require 'msgpack'

data = :symbol

Viiite.bench do |b|
  b.variation_point :branch, `git rev-parse --abbrev-ref HEAD`

  b.range_over([:symbol, :none], :reg_type) do |reg_type|
    packer = MessagePack::Packer.new
    packer.register_type(0x00, Symbol, :to_msgpack_ext) if reg_type == :symbol

    b.range_over([100_000, 1_000_000, 10_000_000], :count) do |count|
      packer.clear
      b.report(:multi_run) do
        count.times do
          packer.pack(data)
        end
      end

      packer.clear
      items_data = [].fill(data, 0, count)
      b.report(:large_run) do
        packer.pack(items_data)
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 3 rubygems

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