Sha256: f1dff6d9ac73ff0b231e37036c8ffb806cb4c560d671da90d8384e89735f4d19
Contents?: true
Size: 295 Bytes
Versions: 9
Compression:
Stored size: 295 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.join('.', 'lib')) require 'httpclient' clnt = HTTPClient.new() site = ARGV.shift threads = [] 15.times do threads << Thread.new do loop do puts "GET #{site}" cnt = clnt.get_content site sleep 1 end end end threads.map(&:join)
Version data entries
9 entries across 9 versions & 1 rubygems