Sha256: a8c38cc09237eedc5f5647b1cb9856882972f931343612e8ec91cd571b633269
Contents?: true
Size: 618 Bytes
Versions: 4
Compression:
Stored size: 618 Bytes
Contents
ENV["PB_CLIENT_TYPE"] = "protobuf/nats/client" ENV["PB_SERVER_TYPE"] = "protobuf/nats/runner" require "benchmark/ips" require "./examples/warehouse/app" payload = ::Warehouse::Shipment.new(:guid => ::SecureRandom.uuid, :address => "123 yolo st") nats = ::NATS::IO::Client.new nats.connect({:servers => ["nats://127.0.0.1:4222"]}) 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
protobuf-nats-0.1.3 | bench/real_client.rb |
protobuf-nats-0.1.2 | bench/real_client.rb |
protobuf-nats-0.1.1 | bench/real_client.rb |
protobuf-nats-0.1.0 | bench/real_client.rb |