Sha256: 77594bbe8eb744ec41ccfd38c65ff78a03f28f11fd549b4bae10ce6502cb8de5

Contents?: true

Size: 591 Bytes

Versions: 17

Compression:

Stored size: 591 Bytes

Contents

$:.unshift('lib')

require 'ruote/engine'

pdef = Ruote.process_definition do
  sequence do
    #625.times do
    #500.times do
    5000.times do
      echo 'a'
    end
  end
end

engine = Ruote::Engine.new
t = Time.now
fei = engine.launch(pdef)
engine.wait_for(fei.wfid)
puts "#{Time.now - t}s"

#require 'eventmachine'
#EM.run {
#  engine = Ruote::Engine.new
#  t = Time.now
#  fei = engine.launch(pdef)
#  #engine.wait_for(fei.wfid)
#  #puts "#{Time.now - t}s"
#  #EM.stop
#  engine.wqueue.observe(:processes) do |eclass, emsg, args|
#    puts "#{Time.now - t}s"
#    EM.stop
#  end
#}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
ruote-2.3.0.3 test/bm/t.rb
ruote-maestrodev-2.2.1 test/bm/t.rb
ruote-2.3.0.2 test/bm/t.rb
ruote-2.3.0.1 test/bm/t.rb
ruote-2.3.0 test/bm/t.rb
ruote-2.2.0 test/bm/t.rb
ruote-2.1.11 test/bm/t.rb
ruote-2.1.10 test/bm/t.rb
ruote-2.1.9 test/bm/t.rb
ruote-2.1.8 test/bm/t.rb
ruote-2.1.7 test/bm/t.rb
ruote-2.1.6 test/bm/t.rb
ruote-2.1.5 test/bm/t.rb
ruote-2.1.4 test/bm/t.rb
ruote-2.1.3 test/bm/t.rb
ruote-2.1.2 test/bm/t.rb
ruote-2.1.1 test/bm/t.rb