https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2017-04-14T08:40:23Z
Ruby Issue Tracking System
Ruby master - Feature #13342: Improve yielding block performance
https://redmine.ruby-lang.org/issues/13342?journal_id=64229
2017-04-14T08:40:23Z
watson1978 (Shizuo Fujita)
watson1978@gmail.com
<ul></ul><p>When I filed this ticket, I tried to run benchmark on macOS + clang only.<br>
Then, I tried to do on 2 environments in additional.</p>
<a name="macOS-1012-gcc-630"></a>
<h2 >macOS 10.12 + gcc 6.3.0<a href="#macOS-1012-gcc-630" class="wiki-anchor">¶</a></h2>
<a name="Before"></a>
<h3 >Before<a href="#Before" class="wiki-anchor">¶</a></h3>
<pre><code> user system total real
Integer#times 0.890000 0.000000 0.890000 ( 0.886378)
Array#each 0.840000 0.010000 0.850000 ( 0.849755)
Array#map 1.070000 0.030000 1.100000 ( 1.094257)
</code></pre>
<a name="After"></a>
<h3 >After<a href="#After" class="wiki-anchor">¶</a></h3>
<pre><code> user system total real
Integer#times 0.860000 0.000000 0.860000 ( 0.860164)
Array#each 0.870000 0.000000 0.870000 ( 0.867758)
Array#map 1.070000 0.030000 1.100000 ( 1.102324)
</code></pre>
<a name="Ubuntu-16044-gcc-540"></a>
<h2 >Ubuntu 16.04.4 + gcc 5.4.0<a href="#Ubuntu-16044-gcc-540" class="wiki-anchor">¶</a></h2>
<a name="Before-2"></a>
<h3 >Before<a href="#Before-2" class="wiki-anchor">¶</a></h3>
<pre><code> user system total real
Integer#times 0.560000 0.000000 0.560000 ( 0.561627)
Array#each 0.550000 0.000000 0.550000 ( 0.552468)
Array#map 0.710000 0.000000 0.710000 ( 0.714104)
</code></pre>
<a name="After-2"></a>
<h3 >After<a href="#After-2" class="wiki-anchor">¶</a></h3>
<pre><code> user system total real
Integer#times 0.530000 0.000000 0.530000 ( 0.533428)
Array#each 0.530000 0.000000 0.530000 ( 0.526173)
Array#map 0.650000 0.020000 0.670000 ( 0.676441)
</code></pre>
Ruby master - Feature #13342: Improve yielding block performance
https://redmine.ruby-lang.org/issues/13342?journal_id=78846
2019-06-24T20:33:16Z
jeremyevans0 (Jeremy Evans)
merch-redmine@jeremyevans.net
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>Backport</strong> deleted (<del><i>2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN</i></del>)</li></ul>