Sha256: 38ce85a01f6ca9ff12557dab828a887557ee6cb94d75683d4532442f23c9b858
Contents?: true
Size: 349 Bytes
Versions: 1
Compression:
Stored size: 349 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "#{File.dirname(__FILE__)}/../lib/pigato.rb" client = PigatoClient.new('tcp://localhost:55555') requests = 1000 d1 = Time.now requests.times do |i| begin client.send('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.1.5 | examples/echo_client.rb |