Fix NET_2_0 build
[mono-project.git] / mono / benchmark / sbperf2.cs
blob8d7379e4ea95b25a181d8221194bd8b004d2ce2d
1 using System.Text;
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;
15 return 0;