Skip to content

Instantly share code, notes, and snippets.

@myitcv
Created February 19, 2014 16:28
Show Gist options
  • Save myitcv/9095624 to your computer and use it in GitHub Desktop.
Save myitcv/9095624 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'bundler/setup'
require 'celluloid/autostart'
require 'aws-sdk-core'
Aws.config = { access_key_id: 'xxxxxxxx', secret_access_key: 'xxxxxxxxxxx', region: 'xxxxxxxxxxxxx' }
class SigningTest
include Celluloid
include Celluloid::Logger
def initialize
@client = Aws.dynamodb
end
def doit
info @client.list_tables.inspect[0,15]
end
end
x = SigningTest.pool(size: 50)
(1..100).each do
x.async.doit
end
sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment