https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112015-12-26T12:16:44ZRuby Issue Tracking SystemRuby master - Misc #11875: Ruby 2.3.0 now is slowly than php 7https://redmine.ruby-lang.org/issues/11875?journal_id=557692015-12-26T12:16:44ZSega100500 (Сергей Е)Sergey.V.Ezhov@gmail.com
<ul></ul><p>Сергей Е wrote:</p>
<blockquote>
<p>I install Ruby 2.3, and compare perfomance (simple tests - loop, recursion) with php 7.<br>
code of tests:<br>
<a href="http://inet777.ru/sravnenie-proizvoditelmznosti-ruby-php-i-python-na-linux-x64-intel-core-i5/9516" class="external">http://inet777.ru/sravnenie-proizvoditelmznosti-ruby-php-i-python-na-linux-x64-intel-core-i5/9516</a></p>
</blockquote> Ruby master - Misc #11875: Ruby 2.3.0 now is slowly than php 7https://redmine.ruby-lang.org/issues/11875?journal_id=557712015-12-26T13:40:50Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>You know, this is bug tracker, not socks under the Christmas tree.</p>
<p>Moreover the benchmark you show is micro benchmark.<br>
If we improve Ruby for such micro benchmark, the real performance of Ruby may not be improved.<br>
Because such optimizations sometimes has trade offs.<br>
We are trying to make more suitable benchmarks which reflect real world performance,<br>
and improve Ruby for real world applications.</p> Ruby master - Misc #11875: Ruby 2.3.0 now is slowly than php 7https://redmine.ruby-lang.org/issues/11875?journal_id=557722015-12-26T14:22:20ZSega100500 (Сергей Е)Sergey.V.Ezhov@gmail.com
<ul></ul><p>Yui NARUSE wrote:</p>
<blockquote>
<p>You know, this is bug tracker, not socks under the Christmas tree.</p>
<p>Moreover the benchmark you show is micro benchmark.<br>
If we improve Ruby for such micro benchmark, the real performance of Ruby may not be improved.<br>
Because such optimizations sometimes has trade offs.<br>
We are trying to make more suitable benchmarks which reflect real world performance,<br>
and improve Ruby for real world applications.</p>
</blockquote>
<p>I did not want anything to offend. Sorry.</p>
<p>I said firstly: "Not BUG but wish"</p>
<p>May you point me to "real world performance", "real world applications" benchmarks? Source code for testing.<br>
Many thanks!</p>
<p>And further...</p>
<p>Each complex ("real world") algorithm is a totality (set) of the many micro (simple) algorithms.</p>
<p>Disappointing that php is faster.</p>
<p>Sorry. I apologize again.</p>
<p>Ruby 2.3 is faster then 2.2.4!</p>
<p>test 1</p>
<p>Ruby 2.3.0:<br>
user system total real<br>
29000000<br>
0.620000 0.000000 0.620000 ( 0.620483)<br>
118000000<br>
1.190000 0.000000 1.190000 ( 1.192848)<br>
267000000<br>
1.830000 0.000000 1.830000 ( 1.828014)</p>
<p>Ruby 2.2.4:<br>
user system total real<br>
29000000<br>
0.810000 0.000000 0.810000 ( 0.811010)<br>
118000000<br>
1.640000 0.000000 1.640000 ( 1.641845)<br>
267000000<br>
2.480000 0.000000 2.480000 ( 2.476726)</p>
<p>test 2</p>
<p>Ruby 2.3.0:<br>
user system total real<br>
832040<br>
0.140000 0.000000 0.140000 ( 0.140042)<br>
1346269<br>
0.180000 0.000000 0.180000 ( 0.178167)<br>
2178309<br>
0.290000 0.000000 0.290000 ( 0.288229)<br>
3524578<br>
0.460000 0.000000 0.460000 ( 0.464329)<br>
5702887<br>
0.760000 0.000000 0.760000 ( 0.756518)</p>
<p>Ruby 2.2.4:<br>
user system total real<br>
832040<br>
0.170000 0.000000 0.170000 ( 0.165969)<br>
1346269<br>
0.210000 0.000000 0.210000 ( 0.214349)<br>
2178309<br>
0.350000 0.000000 0.350000 ( 0.346734)<br>
3524578<br>
0.560000 0.000000 0.560000 ( 0.562673)<br>
5702887<br>
0.910000 0.000000 0.910000 ( 0.904228)</p>