summaryrefslogtreecommitdiffstats
path: root/benchmark/bmx_temp.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-05 13:52:16 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-05 13:52:16 +0000
commitb3f9b1ee3a0cf365153bb807505be14bc3fcd794 (patch)
tree440e1f4cbf395fe32da95538b2ef5d6b8df14be3 /benchmark/bmx_temp.rb
parent98d671e37105fd9408bbf509e9c0f8f175c47b96 (diff)
downloadruby-b3f9b1ee3a0cf365153bb807505be14bc3fcd794.tar.gz
ruby-b3f9b1ee3a0cf365153bb807505be14bc3fcd794.tar.xz
ruby-b3f9b1ee3a0cf365153bb807505be14bc3fcd794.zip
* benchmark/bm_app_pentomino.rb : use Array#dup instead of
Array#clone * benchmark/bmx_temp.rb : removed * benchmark/run.rb : use run.rb instead of run_rite.rb * common.mk : ditto * benchmark/run_rite.rb : removed * common.mk : use $(srcdir)/test.rb to run a test program with "make run" * benchmark/bmx_temp.rb : removed and set svn:ignore (bmx_*.rb) to benchmark/ * test.rb : set svn:ignore git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/bmx_temp.rb')
-rw-r--r--benchmark/bmx_temp.rb57
1 files changed, 0 insertions, 57 deletions
diff --git a/benchmark/bmx_temp.rb b/benchmark/bmx_temp.rb
deleted file mode 100644
index dc45f5a15..000000000
--- a/benchmark/bmx_temp.rb
+++ /dev/null
@@ -1,57 +0,0 @@
-
-i=0
-while i<20000000
- x = 1 # "foo"
- i+=1
-end
-
-__END__
-
-class Range
- def each
- f = self.first
- l = self.last
- while f < l
- yield
- f = f.succ
- end
- end
-end
-
-(0..10000000).each{
-}
-
-__END__
-class Fixnum_
- def times
- i = 0
- while i<self
- yield(i)
- i+=1
- end
- end
-end
-
-10000000.times{
-}
-__END__
-
-ths = (1..10).map{
- Thread.new{
- 1000000.times{
- }
- }
-}
-ths.each{|e|
- e.join
-}
-
-__END__
-$pr = proc{}
-def m
- $pr.call
-end
-
-1000000.times{|e|
- m
-}