ruby-changes:20046
From: kosaki <ko1@a...>
Date: Wed, 15 Jun 2011 03:54:41 +0900 (JST)
Subject: [ruby-changes:20046] kosaki:r32093 (trunk): * benchmark/bm_vm4_pass_flood.rb: new benchmark for GVL fairness.
kosaki 2011-06-15 03:54:30 +0900 (Wed, 15 Jun 2011) New Revision: 32093 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32093 Log: * benchmark/bm_vm4_pass_flood.rb: new benchmark for GVL fairness. * benchmark/bm_vm4_alive_check1.rb: ditto. Added files: trunk/benchmark/bm_vm4_alive_check1.rb trunk/benchmark/bm_vm4_pass_flood.rb Modified files: trunk/ChangeLog Index: ChangeLog =================================================================== --- ChangeLog (revision 32092) +++ ChangeLog (revision 32093) @@ -1,3 +1,8 @@ +Wed Jun 15 03:52:50 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * benchmark/bm_vm4_pass_flood.rb: new benchmark for GVL fairness. + * benchmark/bm_vm4_alive_check1.rb: ditto. + Wed Jun 15 01:27:53 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * thread_pthread.c (gvl_yield): fix live lock issue on 1-2 cpus Index: benchmark/bm_vm4_alive_check1.rb =================================================================== --- benchmark/bm_vm4_alive_check1.rb (revision 0) +++ benchmark/bm_vm4_alive_check1.rb (revision 32093) @@ -0,0 +1,6 @@ +5000.times{ + t = Thread.new{} + while t.alive? + Thread.pass + end +} Property changes on: benchmark/bm_vm4_alive_check1.rb ___________________________________________________________________ Added: svn:eol-style + LF Index: benchmark/bm_vm4_pass_flood.rb =================================================================== --- benchmark/bm_vm4_pass_flood.rb (revision 0) +++ benchmark/bm_vm4_pass_flood.rb (revision 32093) @@ -0,0 +1,8 @@ +1000.times{ + Thread.new{loop{Thread.pass}} +} + +i=0 +while i<10000 + i += 1 +end Property changes on: benchmark/bm_vm4_pass_flood.rb ___________________________________________________________________ Added: svn:eol-style + LF -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/