Sha256: 22335e64fd31a93f39e74c52a931480bea65e9fa93c09f9c60462bc7310981d7
Contents?: true
Size: 416 Bytes
Versions: 4
Compression:
Stored size: 416 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 = 1000 d1 = Time.now requests.times do |i| begin client.request('echo', 'Hello world', { "nocache" => 1 }) end end d2 = Time.now puts "#{requests} requests/replies processed (#{(d2 - d1) * 1000} milliseconds)"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pigato-0.2.11 | examples/echo_client.rb |
pigato-0.2.10 | examples/echo_client.rb |
pigato-0.2.9 | examples/echo_client.rb |
pigato-0.2.8 | examples/echo_client.rb |