Sha256: 03c43eb506417b8cd2620f3d4f0d86a797ed80ab370c41219914efdb6b8a1fe7

Contents?: true

Size: 879 Bytes

Versions: 13

Compression:

Stored size: 879 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'
require 'ruote/log/test_logger'

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.add_service(:s_logger, Ruote::TestLogger)
#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

13 entries across 13 versions & 2 rubygems

Version Path
ruote-maestrodev-2.2.1 test/bm/ci.rb
ruote-2.2.0 test/bm/ci.rb
ruote-2.1.11 test/bm/ci.rb
ruote-2.1.10 test/bm/ci.rb
ruote-2.1.9 test/bm/ci.rb
ruote-2.1.8 test/bm/ci.rb
ruote-2.1.7 test/bm/ci.rb
ruote-2.1.6 test/bm/ci.rb
ruote-2.1.5 test/bm/ci.rb
ruote-2.1.4 test/bm/ci.rb
ruote-2.1.3 test/bm/ci.rb
ruote-2.1.2 test/bm/ci.rb
ruote-2.1.1 test/bm/ci.rb