Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sbperf2.cs « benchmark « mono - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d7379e4ea95b25a181d8221194bd8b004d2ce2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Text;

namespace test {
	public class Test {
		public static int Main() {
			StringBuilder sb = new StringBuilder ();
			for (int i = 0; i < 1000000; i++) {
   			   sb.Append ("hello");
                           sb.Append (" world!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
                           string str = sb.ToString ();
			   int len = str.Length;
			   sb.Length = 0;
			}

			return 0;
			
		}
	}
}