mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

* tool/gcbench.rb: separate GC bench framework and process. * tool/hashbench1.rb, tool/hashbench2.rb: add two types GC bench. hashbench1: many temporal objects (GC by newobj) hashbench2: hash size becomes bigger and bigger (GC by malloc) Two benchs are executed by `gcbench-hash' rule. * tool/rdocbench.rb: separated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
11 lines
187 B
Ruby
11 lines
187 B
Ruby
require 'rdoc/rdoc'
|
|
require 'tmpdir'
|
|
|
|
Dir.mktmpdir('rdocbench-'){|d|
|
|
dir = File.join(d, 'rdocbench')
|
|
args = ARGV.dup
|
|
args << '--op' << dir
|
|
|
|
r = RDoc::RDoc.new
|
|
r.document args
|
|
}
|