Sha256: 4693ad781750eb1c4a2e9b33afd4b09085d6b076bfc41a850d3602d41057f8ca
Contents?: true
Size: 396 Bytes
Versions: 6
Compression:
Stored size: 396 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') end end d2 = Time.now puts "#{requests} requests/replies processed (#{(d2 - d1) * 1000} milliseconds)"
Version data entries
6 entries across 6 versions & 1 rubygems