-
-
Save xaviershay/c8d0d422a9203e1fe492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`mkdir f` | |
10000.times do |x| | |
`touch f/bogus#{x}.rb` | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
$LOAD_PATH.unshift(File.expand_path('f')) | |
x = 0 | |
require 'benchmark' | |
Benchmark.bm do |b| | |
(1..5).each do |n| | |
b.report("#{n * 500} requires") { (n*500).times { require "bogus#{x}"; x += 1 }} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah yep... the same error occurred using straight 1.9.3dev.
Well in a strange sense I'm pumped your patch still looks good! Thanks for all the work your putting into this!
Cheers!