Sha256: a491d27b29e14e9005e8bbce6125844e286a43e703f8beec3a366f428e87a7f1
Contents?: true
Size: 277 Bytes
Versions: 3
Compression:
Stored size: 277 Bytes
Contents
require 'parallel' require 'net/http' $proc_num = 5 $execute_num = 10 Parallel.map([1,2,3,4,5,6], :in_processes => $proc_num) do |letter| $execute_num.times do http = Net::HTTP.new('localhost', 3000) req = Net::HTTP::Get.new('/foo') http.request(req) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-server_status-0.0.4 | examples/paralell_test.rb |
rack-server_status-0.0.3 | examples/paralell_test.rb |
rack-server_status-0.0.2 | examples/paralell_test.rb |