Merge pull request #5714 from alexischr/update_bockbuild
[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 }