Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / benchmark / string1.cs
1 using System;
2
3 public class Tests {
4
5         public static int Main (string[] args) {
6                 int res, repeat = 1;
7                 string ts1 = "abcdefghijklmnopqrstuvwxyz";
8                 
9                 if (args.Length == 1)
10                         repeat = Convert.ToInt32 (args [0]);
11                 
12                 Console.WriteLine ("Repeat = " + repeat);
13
14                 int len = ts1.Length;
15                         
16                 for (int i = 0; i < (repeat * 50); i++) {
17                         for (int j = 0; j < 100000; j++) {
18                                 int k, h = 0;
19
20                                 for (k = 0; k < len; ++k)
21                                         h += ts1 [k];
22
23                         }
24                 }
25                 
26                 return 0;
27         }
28 }
29
30