ruby-changes:51683
From: k0kubun <ko1@a...>
Date: Mon, 9 Jul 2018 01:46:54 +0900 (JST)
Subject: [ruby-changes:51683] k0kubun:r63895 (trunk): benchmark/vm1_ensure.yml: rollback loop_count abstraction
k0kubun 2018-07-09 01:46:49 +0900 (Mon, 09 Jul 2018) New Revision: 63895 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63895 Log: benchmark/vm1_ensure.yml: rollback loop_count abstraction for now. When measured script is really too fast, while loop substituion may return a negative benchmark result. Probably benchmark_driver.gem has rooms to be improved about this. Modified files: trunk/benchmark/vm1_ensure.yml Index: benchmark/vm1_ensure.yml =================================================================== --- benchmark/vm1_ensure.yml (revision 63894) +++ benchmark/vm1_ensure.yml (revision 63895) @@ -1,9 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/vm1_ensure.yml#L1 +# Not utilizing loop_count since using it for this is too unstable for now benchmark: vm1_ensure: | - begin + i = 0 + while i<30_000_000 + i += 1 begin + begin + ensure + end ensure end - ensure end -loop_count: 30000000 +loop_count: 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/