Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (25 sloc) 0.583 kb
ranges = [1, 10, 100]
require 'iron_worker_ng'
times = {}
ranges.each do |r|
start_time = Time.now
threads = []
r.times do |i|
client = IronWorkerNG::Client.new()
threads << Thread.new {
t = client.tasks.create(
'ImageProcessor',
'disable_network' => true
)
client.tasks.wait_for(t.id) do |task|
puts task.status
end
}
end
threads.each(&:join)
puts "Processing time = #{Time.now - start_time}"
times[r] = Time.now - start_time
end
File.open("remote_times.stat", "w") do |file|
file.write times.to_s
end
Jump to Line
Something went wrong with that request. Please try again.