Sha256: bb2de059fd5c01727d60b2a54c955cb9c4bfb329b0f93e7b593e0ca22715cc1f

Contents?: true

Size: 798 Bytes

Versions: 4

Compression:

Stored size: 798 Bytes

Contents

#
# testing ruote
#
# Wed Sep 16 16:28:36 JST 2009
#

#require 'profile'

require 'benchmark'
require 'rubygems'

require File.dirname(__FILE__) + '/../path_helper'
require File.dirname(__FILE__) + '/../functional/engine_helper'

ac = {
  #:definition_in_launchitem_allowed => true
}

engine = determine_engine_class(ac).new(ac)

#puts
#p engine.class
#puts

#N = 10_000
#N = 1_000
N = 300

#engine.context[:noisy] = true

Benchmark.benchmark(' ' * 20 + Benchmark::Tms::CAPTION, 20) do |bench|

  bench.report('run') do

    wfid = engine.launch(
      Ruote.process_definition(:name => 'ci') {
        concurrent_iterator(:branches => N.to_s) {
          noop
        }
      }
    )

    engine.logger.wait_for([ [ :processes, :terminated, { :wfid => wfid } ] ])

  end

end

puts

engine.stop

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruote-2.3.0.3 test/bm/ci.rb
ruote-2.3.0.2 test/bm/ci.rb
ruote-2.3.0.1 test/bm/ci.rb
ruote-2.3.0 test/bm/ci.rb