Sha256: 23418269c78630d365d096eda0ede48f3f4967122f7f59578d19bc84f2811d3a
Contents?: true
Size: 557 Bytes
Versions: 5
Compression:
Stored size: 557 Bytes
Contents
require_relative '../lib/grenache-ruby-http.rb' Grenache::Http.configure do |conf| conf.grape_address = "http://127.0.0.1:40002/" conf.key = File.expand_path('.') + "/ssl/client1-key.pem" conf.cert_pem = File.expand_path('.') + "/ssl/client1-crt.pem" conf.ca = File.expand_path('.') + "/ssl/ca-crt.pem" end c = Grenache::Http.new start_time = Time.now 10.times do |n| err,resp = c.request("rpc_test","world #{n}") if !err puts "response: #{resp}" else puts "ERROR: #{err}" end end puts "Total Time: #{Time.now - start_time}"
Version data entries
5 entries across 5 versions & 1 rubygems