OSDN Git Service
(root)
/
splhack
/
AndroidRuby.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ruby-1.9.1-rc1
[splhack/AndroidRuby.git]
/
lib
/
ruby-1.9.1-rc1
/
benchmark
/
prepare_so_count_words.rb
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