summaryrefslogtreecommitdiff
path: root/benchmark/bm_loop_for.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-10 19:19:36 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-10 19:19:36 +0000
commit3f710785f0508d93795b316b78dc24987cf47370 (patch)
treec4bfaeb462fc57b54f0d43d09a914bab27b76400 /benchmark/bm_loop_for.rb
parent254937c873d5f273519056f80ea3b1dfd0812e95 (diff)
* parse.y: optimize 'for' statement when one variable given.
* benchmark/bm_loop_for.rb: added. * benchmark/bm_loop_times.rb: modified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/bm_loop_for.rb')
-rw-r--r--benchmark/bm_loop_for.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmark/bm_loop_for.rb b/benchmark/bm_loop_for.rb
new file mode 100644
index 0000000..398f6ff
--- /dev/null
+++ b/benchmark/bm_loop_for.rb
@@ -0,0 +1,3 @@
+for i in 1..30_000_000
+ #
+end