summaryrefslogtreecommitdiff
path: root/benchmark/bmx_temp.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-27 06:46:31 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-27 06:46:31 +0000
commit87375866a629e64a646c1b32d0e50926a729ca11 (patch)
tree8db2b577f86f2c6957029bf1802aa341452f1a50 /benchmark/bmx_temp.rb
parent29538dbb0ed5dda03ecd6348b33ab29d174fcb58 (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/bmx_temp.rb')
-rw-r--r--benchmark/bmx_temp.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmark/bmx_temp.rb b/benchmark/bmx_temp.rb
index e69de29bb2..2b78092793 100644
--- a/benchmark/bmx_temp.rb
+++ b/benchmark/bmx_temp.rb
@@ -0,0 +1,5 @@
+str = '*' * 1_000_000
+
+1.times{
+ str.split('*').size
+}