Skip to content

Instantly share code, notes, and snippets.

@ErvalhouS
Created February 21, 2017 13:34
Show Gist options
  • Save ErvalhouS/9b66e7b0bca9b905c00e8fa68fd60b42 to your computer and use it in GitHub Desktop.
Save ErvalhouS/9b66e7b0bca9b905c00e8fa68fd60b42 to your computer and use it in GitHub Desktop.
Throttling script for testing server capacity
require 'httpclient'
c = HTTPClient.new
a=0
loop do
c.get_async("http://target.com")
p a
a += 1
a = 0 if a == 10000
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment