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

Version Path
fluffle-1.1.0 examples/testing.rb
fluffle-1.0.1 examples/testing.rb
fluffle-1.0.0 examples/testing.rb
fluffle-0.9.1 examples/testing.rb
fluffle-0.9.0 examples/testing.rb
fluffle-0.8.1 examples/testing.rb
fluffle-0.8.0 examples/testing.rb
fluffle-0.7.2 examples/testing.rb
fluffle-0.7.1 examples/testing.rb
fluffle-0.7.0 examples/testing.rb
fluffle-0.6.3 examples/testing.rb
fluffle-0.6.2 examples/testing.rb
fluffle-0.6.1 examples/testing.rb
fluffle-0.6.0 examples/testing.rb
fluffle-0.5.2 examples/testing.rb
fluffle-0.5.1 examples/testing.rb