diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-10 19:19:36 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-10 19:19:36 +0000 |
commit | 3f710785f0508d93795b316b78dc24987cf47370 (patch) | |
tree | c4bfaeb462fc57b54f0d43d09a914bab27b76400 /benchmark | |
parent | 254937c873d5f273519056f80ea3b1dfd0812e95 (diff) | |
download | bundler-3f710785f0508d93795b316b78dc24987cf47370.tar.gz |
* 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')
-rw-r--r-- | benchmark/bm_loop_for.rb | 3 | ||||
-rw-r--r-- | benchmark/bm_loop_times.rb | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/benchmark/bm_loop_for.rb b/benchmark/bm_loop_for.rb new file mode 100644 index 0000000000..398f6ff611 --- /dev/null +++ b/benchmark/bm_loop_for.rb @@ -0,0 +1,3 @@ +for i in 1..30_000_000
+ #
+end
diff --git a/benchmark/bm_loop_times.rb b/benchmark/bm_loop_times.rb index c5317b8228..521f72ad1a 100644 --- a/benchmark/bm_loop_times.rb +++ b/benchmark/bm_loop_times.rb @@ -1 +1 @@ -30000000.times{|e|} +30_000_000.times{|e|} |