[MSBuild] Fixed a test that failed when the GAC wasn't available
[mono-project.git] / mono / benchmark / string1.cs
bloba185d5ffe959e2fe3886269f034f9cb4450350e5
1 using System;
3 public class Tests {
5 public static int Main (string[] args) {
6 int res, repeat = 1;
7 string ts1 = "abcdefghijklmnopqrstuvwxyz";
9 if (args.Length == 1)
10 repeat = Convert.ToInt32 (args [0]);
12 Console.WriteLine ("Repeat = " + repeat);
14 int len = ts1.Length;
16 for (int i = 0; i < (repeat * 50); i++) {
17 for (int j = 0; j < 100000; j++) {
18 int k, h = 0;
20 for (k = 0; k < len; ++k)
21 h += ts1 [k];
26 return 0;