Class: Cloudspeq::DistributedTesting
- Inherits:
-
Object
- Object
- Cloudspeq::DistributedTesting
- Defined in:
- lib/cloudspeq/distributed_testing.rb
Class Method Summary collapse
Class Method Details
.perform(settings, machines) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/cloudspeq/distributed_testing.rb', line 7 def self.perform(settings,machines) @settings = settings @machines = machines.shuffle @threads = [] @outputs = [] @proccessed = [] @code_returns = [] time = Benchmark.measure do test_clusters test_remaining @threads.each(&:join) end {'time' => time.real, 'outputs' => @outputs} end |