Sha256: 20f87e21f109ca2eabd1e59f0c87b19f8f2b88e250a9857e11248aab98b836a7
Contents?: true
Size: 367 Bytes
Versions: 3
Compression:
Stored size: 367 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "#{File.dirname(__FILE__)}/../lib/pigato.rb" #require "pigato" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pigato-0.1.8 | examples/echo_client.rb |
pigato-0.1.7 | examples/echo_client.rb |
pigato-0.1.6 | examples/echo_client.rb |