Sha256: 5d688a4953b35a354575292ffe07f1022d6e4584c87d6441b4aabfcbf34fb986
Contents?: true
Size: 492 Bytes
Versions: 16
Compression:
Stored size: 492 Bytes
Contents
lib = File.join File.dirname(__FILE__), '..', 'lib' $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'fluffle' require 'fluffle/testing' Fluffle::Testing.setup! server = Fluffle::Server.new url: 'amqp://localhost' server.drain do |dispatcher| dispatcher.handle('foo') { 'bar' } end server.start client = Fluffle::Client.new url: 'amqp://localhost', confirms: true timings = 10.times.map do t0 = Time.now client.call('foo').inspect Time.now - t0 end puts timings
Version data entries
16 entries across 16 versions & 1 rubygems