repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix NET_2_0 build
[mono-project.git]
/
mono
/
benchmark
/
sbperf2.cs
blob
8d7379e4ea95b25a181d8221194bd8b004d2ce2d
1
using
System
.
Text
;
2
3
namespace
test
{
4
public class
Test
{
5
public static int
Main
() {
6
StringBuilder sb
=
new
StringBuilder
();
7
for
(
int
i
=
0
;
i
<
1000000
;
i
++) {
8
sb
.
Append
(
"hello"
);
9
sb
.
Append
(
" world!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
);
10
string
str
=
sb
.
ToString
();
11
int
len
=
str
.
Length
;
12
sb
.
Length
=
0
;
13
}
14
15
return
0
;
16
17
}
18
}
19
}