Sha256: 6eef49362b7c53605c10ef54e7f6d151b6bab0e8fa397e095eaa2c1b4a014e3f

Contents?: true

Size: 455 Bytes

Versions: 22

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'
require 'fileutils'

FileUtils.cd(__dir__)

def monitor_process(cmd)
  while true
    puts "Starting #{cmd}"
    Polyphony::Process.watch(cmd)
    sleep 5
  end
end

puts "pid: #{Process.pid}"
puts 'Starting stress test'

spin { monitor_process('ruby server.rb') }
spin { monitor_process('ruby multi_agent_supervisor.rb') }
spin { monitor_process('ruby multi_client.rb') }

sleep

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
tipi-0.55 df/stress.rb
tipi-0.54 df/stress.rb
tipi-0.53 df/stress.rb
tipi-0.52 df/stress.rb
tipi-0.51 df/stress.rb
tipi-0.50 df/stress.rb
tipi-0.49 df/stress.rb
tipi-0.47 df/stress.rb
tipi-0.46 df/stress.rb
tipi-0.45 df/stress.rb
tipi-0.43 df/stress.rb
tipi-0.42 df/stress.rb
tipi-0.41 df/stress.rb
tipi-0.40 df/stress.rb
tipi-0.39 df/stress.rb
tipi-0.38 df/stress.rb
tipi-0.37.2 df/stress.rb
tipi-0.37.1 df/stress.rb
tipi-0.37 df/stress.rb
tipi-0.36 df/stress.rb