projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-05-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git]
/
mono
/
benchmark
/
inline5.cs
1
using System;
2
3
public class Test {
4
5
static int a = 0;
6
7
public static void test (int n) {
8
a+=n;
9
}
10
11
public static int Main (string[] args) {
12
int repeat = 1;
13
14
if (args.Length == 1)
15
repeat = Convert.ToInt32 (args [0]);
16
17
Console.WriteLine ("Repeat = " + repeat);
18
19
for (int i = 0; i < repeat; i++)
20
for (int j = 0; j < 500000000; j++)
21
test (a);
22
23
return 0;
24
}
25
}
26
27