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
/
static-fields.cs
1
using System;
2
3
public class Tests {
4
5
public static int si = 0;
6
7
public static int Main (string[] args) {
8
int h = 0, repeat = 1;
9
10
Console.WriteLine ("Repeat = " + repeat);
11
12
for (int i = 0; i < (repeat * 50); i++) {
13
for (int j = 0; j < 10000000; j++) {
14
h += si;
15
}
16
}
17
18
if (h != 0)
19
return 1;
20
21
return 0;
22
}
23
}
24
25