Sha256: 3741fbcb32b446c20fecad920c44cde19d7d64b99b6c39fe04c17a1445001e17
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "#{File.dirname(__FILE__)}/../lib/pigato.rb" #require "pigato" client = Pigato::Client.new('tcp://localhost:55555', { :autostart => true }) requests = 10 d1 = Time.now requests.times do |i| begin client.request('echo', 'Hello world') 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.2 | examples/echo_client.rb |