diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-27 06:46:31 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-27 06:46:31 +0000 |
commit | 87375866a629e64a646c1b32d0e50926a729ca11 (patch) | |
tree | 8db2b577f86f2c6957029bf1802aa341452f1a50 /benchmark/prepare_so_count_words.rb | |
parent | 29538dbb0ed5dda03ecd6348b33ab29d174fcb58 (diff) |
* benchmark/driver.rb: added.
* common.mk: fix to use above driver.
* benchmark/prepare_so_count_words.rb: added.
* benchmark/bm_so_count_words.rb: fix benchmark process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/prepare_so_count_words.rb')
-rw-r--r-- | benchmark/prepare_so_count_words.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/benchmark/prepare_so_count_words.rb b/benchmark/prepare_so_count_words.rb new file mode 100644 index 0000000000..54ea72b8ed --- /dev/null +++ b/benchmark/prepare_so_count_words.rb @@ -0,0 +1,15 @@ +# prepare 'wc.input'
+
+def prepare_wc_input
+ wcinput = File.join(File.dirname($0), 'wc.input')
+ wcbase = File.join(File.dirname($0), 'wc.input.base')
+ unless FileTest.exist?(wcinput)
+ data = File.read(wcbase)
+ 13.times{
+ data << data
+ }
+ open(wcinput, 'w'){|f| f.write data}
+ end
+end
+
+prepare_wc_input
|