Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / benchmark / inline2.cs
1 using System;
2
3 public class Test {
4
5         public static void test0 () {
6                 test1 (0);
7         }
8         public static void test1 (int a) {
9                 test2 (0, 1);
10         }
11         public static void test2 (int a, int b) {
12                 test3 (0, 1, 2);
13         }
14         public static void test3 (int a, int b, int c) {
15                 test4 (0, 1, 2, 3);
16         }
17         public static void test4 (int a, int b, int c, int d) {
18         }
19
20         public static int Main (string[] args) {
21                 int repeat = 1;
22                 
23                 if (args.Length == 1)
24                         repeat = Convert.ToInt32 (args [0]);
25                 
26                 Console.WriteLine ("Repeat = " + repeat);
27
28                 for (int i = 0; i < repeat; i++)
29                         for (int j = 0; j < 500000000; j++)
30                                 test0 ();
31                 
32                 return 0;
33         }
34 }
35
36