projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-05-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git]
/
mono
/
benchmark
/
sbperf2.cs
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
}