summaryrefslogtreecommitdiff
path: root/benchmark/bm_require_thread.rb
blob: e54db6c6e55b86d5c27d3082b3939951c5472311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$:.push File.join(File.dirname(__FILE__), "bm_require.data")

i=0
t = Thread.new do
  while true
    i = i+1 # dummy loop
  end
end

1.upto(100) do |i|
  require "c#{i}"
end

$:.pop
t.kill