Sha256: d98b276c44e04c4e7b41db9ad22988509fc699abdfa6b34e2b1b9d49a8ae10fd

Contents?: true

Size: 440 Bytes

Versions: 35

Compression:

Stored size: 440 Bytes

Contents

ENV["PB_CLIENT_TYPE"] = "protobuf/nats/client"
ENV["PB_SERVER_TYPE"] = "protobuf/nats/runner"

require "benchmark/ips"
require "./examples/warehouse/app"

Protobuf::Logging.logger = ::Logger.new(nil)

Benchmark.ips do |config|
  config.warmup = 10
  config.time = 10

  config.report("single threaded performance") do
    req = Warehouse::Shipment.new(:guid => SecureRandom.uuid)
    Warehouse::ShipmentService.client.create(req)
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
protobuf-nats-0.10.8 bench/real_client.rb
protobuf-nats-0.10.7 bench/real_client.rb
protobuf-nats-0.10.6 bench/real_client.rb
protobuf-nats-0.10.5 bench/real_client.rb
protobuf-nats-0.12.0.pre0 bench/real_client.rb
protobuf-nats-0.10.4 bench/real_client.rb
protobuf-nats-0.10.3 bench/real_client.rb
protobuf-nats-0.10.3.pre0 bench/real_client.rb
protobuf-nats-0.10.2 bench/real_client.rb
protobuf-nats-0.11.0.pre1 bench/real_client.rb
protobuf-nats-0.11.0.pre0 bench/real_client.rb
protobuf-nats-0.10.1 bench/real_client.rb
protobuf-nats-0.10.0 bench/real_client.rb
protobuf-nats-0.9.0 bench/real_client.rb
protobuf-nats-0.9.0.pre3 bench/real_client.rb
protobuf-nats-0.9.0.pre2 bench/real_client.rb
protobuf-nats-0.9.0.pre1 bench/real_client.rb
protobuf-nats-0.8.0 bench/real_client.rb
protobuf-nats-0.7.0 bench/real_client.rb
protobuf-nats-0.7.0.pre1 bench/real_client.rb