mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
8c84716b24
* benchmark/bm_require_thread.rb: new benchmark for conflicting require vs thread. like [Bug #11559] * prepare_require.rb: new file for preparing above tests. * prepare_require.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7 lines
113 B
Ruby
7 lines
113 B
Ruby
$:.push File.join(File.dirname(__FILE__), "bm_require.data")
|
|
|
|
1.upto(10000) do |i|
|
|
require "c#{i}"
|
|
end
|
|
|
|
$:.pop
|