Sha256: 4aee240d771032a3b79943f2ec7e20007642362afc0dc54ab33938491f3c45d5

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

#!/usr/bin/env ruby
require 'pry-remote'

require "rubygems"
require "#{File.dirname(__FILE__)}/../lib/pigato.rb"
#require "pigato"
require 'thread'

client = Pigato::Client.new('tcp://localhost:55555')

#Process.daemon

#binding.remote_pry

client.start
client.start
requests = 1000
d1 = Time.now
requests.times do |i|
  begin
    client.request('echo', 'Hello world1')
  end
end
d2 = Time.now
puts "#{requests} requests/replies processed (#{(d2 - d1) * 1000} milliseconds)"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pigato-0.2.23 examples/echo_client.rb