2003-12-12 Patrik Torstesson <p@rxc.se>
[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 < 500000; i++) {
8                            sb.Append ("hello");
9                            sb.Append (" world!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
10                            sb.ToString ();
11                            sb.Length = 0;
12                         }
13
14                         return 0;
15                         
16                 }
17         }
18 }