Sha256: 100ef7e4c320b5530ce2cf9f89e3319af9d93f71f0736d130df13ae9c2e26e0f

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

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


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

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

1 entries across 1 versions & 1 rubygems

Version Path
grenache-ruby-http-0.2.9 examples/client.rb