Created
February 21, 2017 13:34
-
-
Save ErvalhouS/9b66e7b0bca9b905c00e8fa68fd60b42 to your computer and use it in GitHub Desktop.
Throttling script for testing server capacity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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