Created
August 26, 2018 04:44
-
-
Save devtdeng/3e6739885ab79c18cdb005f2095d7eab to your computer and use it in GitHub Desktop.
ruby load test
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 'net/http' | |
require 'uri' | |
def func | |
uri = URI.parse("http://test-target.cfapps-11.haas-59.pez.pivotal.io") | |
response = Net::HTTP.get_response(uri) | |
end | |
$i = 0 | |
$num = 150000 | |
while $i < $num do | |
Thread.new{func()} | |
$i +=1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment