Sha256: ddc6e3349b584938b9c9515cd5ab7f0db1c587a29dc0e8536b5ae9d6acf83da8
Contents?: true
Size: 454 Bytes
Versions: 3
Compression:
Stored size: 454 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') client.start Process.daemon 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pigato-0.2.27 | examples/echo_client.rb |
pigato-0.2.26 | examples/echo_client.rb |
pigato-0.2.25 | examples/echo_client.rb |