Sha256: 3ae1d970b4a57f03fa8c45385c2b435c51638bcd2c059430c9b57439ba21d3d4

Contents?: true

Size: 463 Bytes

Versions: 8

Compression:

Stored size: 463 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
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

8 entries across 8 versions & 1 rubygems

Version Path
pigato-0.2.22 examples/echo_client.rb
pigato-0.2.21 examples/echo_client.rb
pigato-0.2.20 examples/echo_client.rb
pigato-0.2.19 examples/echo_client.rb
pigato-0.2.18 examples/echo_client.rb
pigato-0.2.17 examples/echo_client.rb
pigato-0.2.15 examples/echo_client.rb
pigato-0.2.14 examples/echo_client.rb