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
fix variable name.
[ruby-svn.git]
/
benchmark
/
bm_so_concatenate.rb
blob
82629688b724ba7dabad684bef2ba53429f33419
1
#!/usr/bin/ruby
2
# -*- mode: ruby -*-
3
# $Id: strcat-ruby.code,v 1.4 2004/11/13 07:43:28 bfulgham Exp $
4
# http://www.bagley.org/~doug/shootout/
5
# based on code from Aristarkh A Zagorodnikov and Dat Nguyen
6
7
STUFF = "hello\n"
8
i=0
9
while i<10
10
i+=1
11
hello = ''
12
400000.times do |e|
13
hello << STUFF
14
end
15
end
16
# puts hello.length
17
18