Sha256: 8b2a4709a69098dceb4d7c191354a8e38053a1ee57b35d9a7d6a65554eb82b1e

Contents?: true

Size: 472 Bytes

Versions: 10

Compression:

Stored size: 472 Bytes

Contents

lib = File.join File.dirname(__FILE__), '..', 'lib'
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'fluffle'

client = Fluffle::Client.new url: 'amqp://localhost', confirms: true, mandatory: true
# You can also pass `connection:` to use an existing Bunny connection:
#   Fluffle::Client.new(connection: Bunny.new('amqp://localhost', heartbeat: 2))

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

puts timings

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fluffle-1.1.0 examples/client.rb
fluffle-1.0.1 examples/client.rb
fluffle-1.0.0 examples/client.rb
fluffle-0.9.1 examples/client.rb
fluffle-0.9.0 examples/client.rb
fluffle-0.8.1 examples/client.rb
fluffle-0.8.0 examples/client.rb
fluffle-0.7.2 examples/client.rb
fluffle-0.7.1 examples/client.rb
fluffle-0.7.0 examples/client.rb