Sha256: 9b5ab5e766bfbd0a3e0c6f44b8c9de522dd34a4860efe83409f024bee6c8bb0d

Contents?: true

Size: 316 Bytes

Versions: 5

Compression:

Stored size: 316 Bytes

Contents

require_relative '../lib/grenache-ruby-http.rb'


c = Grenache::Http.new grape_address: "http://127.0.0.1:30001/"

start_time = Time.now

10.times do |n|
  err,resp = c.request("rpc_test","world #{n}")
  if !err
    puts "response: #{resp}"
  else
    puts err
  end
end

puts "Total Time: #{Time.now - start_time}"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grenache-ruby-http-0.2.21 examples/client.rb
grenache-ruby-http-0.2.20 examples/client.rb
grenache-ruby-http-0.2.19 examples/client.rb
grenache-ruby-http-0.2.18 examples/client.rb
grenache-ruby-http-0.2.17 examples/client.rb