Skip to content

@erikh /gist:4f36f8543ad702861096 secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
require 'socket'
threads = []
(0..ARGV[0].to_i).each do |i|
if i % 500 == 0
puts "#{i} threads spawned"
end
threads.push(
Thread.new do
t = TCPSocket.new("test", 11211)
$/ = "\r\n"
t.puts "stats"
while t.readline != "END\r\n"
1
end
sleep
end
)
end
threads.map(&:join)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.