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
/
bm_so_concatenate.rb
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