test/bm/ft_26c_load.rb in ruote-0.9.18 vs test/bm/ft_26c_load.rb in ruote-0.9.19

- old
+ new

@@ -10,88 +10,93 @@ #require 'profile' require 'flowtestbase' require 'openwfe/def' -include OpenWFE - class FlowTest26c < Test::Unit::TestCase - include FlowTestBase + include FlowTestBase - #def setup - #end + #def setup + #end - #def teardown - #end + #def teardown + #end - # - # Test 0 - # + # + # Test 0 + # - #N = 10_000 - N = 1000 + N = 10_000 + #N = 100 - class TestDefinition0 < ProcessDefinition - sequence do - N.times do - count - end - end + class TestDefinition0 < ProcessDefinition + sequence do + N.times do + count + end end + end - def test_load_0 + def test_load_0 - #log_level_to_debug + #log_level_to_debug - #@engine.get_scheduler.sstop - # - # JRuby is no friend of the Scheduler + #@engine.get_scheduler.sstop + # + # JRuby is no friend of the Scheduler - $count = 0 + $count = 0 - @engine.register_participant("count") do |workitem| - $count += 1 - print "." - end + @engine.register_participant("count") do |workitem| + $count += 1 + print "." + end - fei = @engine.launch(LaunchItem.new(TestDefinition0)) - puts "launched #{fei}" + fei = @engine.launch LaunchItem.new(TestDefinition0), :wait_for => true - #log_level_to_debug + #log_level_to_debug - @engine.wait_for fei + assert_equal N, $count + end - assert_equal N, $count - end + # + # Thu Sep 13 15:41:20 JST 2007 + # + # ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.3] + # + # 10_000 in 27.69s + # + # before optimization : 10k in 138.341 + # + # + # ruby 1.8.5 (2007-09-13 rev 3876) [i386-jruby1.1] + # + # 10_000 in 53.96s + # + # ruby 1.8.5 (2007-09-13 rev 3876) [i386-jruby1.1] + # -O -J-server + # + # 10_000 in 42.616s - # - # Thu Sep 13 15:41:20 JST 2007 - # - # ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.3] - # - # 10_000 in 27.69s - # - # before optimization : 10k in 138.341 - # - # - # ruby 1.8.5 (2007-09-13 rev 3876) [i386-jruby1.1] - # - # 10_000 in 53.96s - # - # ruby 1.8.5 (2007-09-13 rev 3876) [i386-jruby1.1] - # -O -J-server - # - # 10_000 in 42.616s + # + # Thu Nov 8 21:36:02 JST 2007 + # + # ruby 1.8.6 (2007-06-07 patchlevel 36) [universal-darwin9.0] + # + # 10_000 in 39.089 + # + # ? + # - # - # Thu Nov 8 21:36:02 JST 2007 - # - # ruby 1.8.6 (2007-06-07 patchlevel 36) [universal-darwin9.0] - # - # 10_000 in 39.089 - # - # ? - # + # + # Fri Jul 25 09:34:15 JST 2008 + # + # 10_000 in 33.60s + # + # ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] + # + # focusing on Marshal for fulldup... + # end