<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -38,8 +38,8 @@ def bm_block_yield(&amp;block)
     yield
 end
 
-def bm_block(&amp;block)
-    block.call
+def bm_block(do_call, &amp;block)
+    block.call if do_call
 end
 
 class Test
@@ -67,7 +67,12 @@ puts &quot;Method call with super: #{after - before}&quot;
 before = ObjectSpace.live_objects
 bm_method_call { 10 }
 after  = ObjectSpace.live_objects
-puts &quot;Method call with block: #{after - before}&quot;
+puts &quot;Method call with block m(): #{after - before}&quot;
+
+before = ObjectSpace.live_objects
+bm_block(false) { 10 }
+after  = ObjectSpace.live_objects
+puts &quot;Method call with block m(&amp;block): #{after - before}&quot;
 
 before = ObjectSpace.live_objects
 bm_yield { 10 }
@@ -75,14 +80,20 @@ after  = ObjectSpace.live_objects
 puts &quot;Yield: #{after - before}&quot;
 
 before = ObjectSpace.live_objects
+bm_block(true) { 10 }
+after  = ObjectSpace.live_objects
+puts &quot;Block &amp; #call: #{after - before}&quot;
+
+before = ObjectSpace.live_objects
 bm_block_yield { 10 }
 after  = ObjectSpace.live_objects
 puts &quot;Block and yield: #{after - before}&quot;
 
+p = Proc.new { 10 }
 before = ObjectSpace.live_objects
-bm_block { 10 }
+p.call
 after  = ObjectSpace.live_objects
-puts &quot;Block: #{after - before}&quot;
+puts &quot;Proc#call: #{after - before}&quot;
 
 puts &quot;\n=== Exceptions&quot;
 def bm_exception</diff>
      <filename>benchmark/alloc_misc.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>702090427639a15796d78bc01e54bc526dcf3434</id>
    </parent>
  </parents>
  <author>
    <name>Sylvain Joyeux</name>
    <email>doudou@demeter.jhaampe.org</email>
  </author>
  <url>http://github.com/doudou/roby/commit/e6a37213cc2e51f0fbfe07b7ac503cb678b8145a</url>
  <id>e6a37213cc2e51f0fbfe07b7ac503cb678b8145a</id>
  <committed-date>2007-08-10T03:09:07-07:00</committed-date>
  <authored-date>2007-08-07T07:10:59-07:00</authored-date>
  <message>[benchmark] update the alloc_misc benchmark</message>
  <tree>f0ad48f87f3c363defc9b8817996825ed833e04e</tree>
  <committer>
    <name>Sylvain Joyeux</name>
    <email>doudou@demeter.jhaampe.org</email>
  </committer>
</commit>
