repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
r18455 reverted.
[ruby-svn.git]
/
benchmark
/
prepare_so_count_words.rb
blob
ee2138cdb24c148246d3a51348ad165791caf04c
1
# prepare 'wc.input'
2
3
def prepare_wc_input
4
wcinput = File.join(File.dirname($0), 'wc.input')
5
wcbase = File.join(File.dirname($0), 'wc.input.base')
6
unless FileTest.exist?(wcinput)
7
data = File.read(wcbase)
8
13.times{
9
data << data
10
}
11
open(wcinput, 'w'){|f| f.write data}
12
end
13
end
14
15
prepare_wc_input