Sha256: f4eaf93242de1db7113d403ab20cf51a8186ae8edb5025d1832436221b47e58e

Contents?: true

Size: 476 Bytes

Versions: 5

Compression:

Stored size: 476 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'

timings = 10.times.map do
  t0 = Time.now
  client.call('foo').inspect
  Time.now - t0
end

puts timings

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fluffle-0.5.0 examples/testing.rb
fluffle-0.4.0 examples/testing.rb
fluffle-0.3.1 examples/testing.rb
fluffle-0.3.0 examples/testing.rb
fluffle-0.2.2 examples/testing.rb