repo.or.cz
/
mono-debugger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mono-debugger.git]
/
mono
/
benchmark
/
isinst.cs
blob
7d5008147ea98d266d2e66d27d166b2d7921b046
1
using
System
;
2
3
public class
Test
{
4
5
public static int
Main
(
string
[]
args
) {
6
int
repeat
=
1
;
7
8
if
(
args
.
Length
==
1
)
9
repeat
=
Convert
.
ToInt32
(
args
[
0
]);
10
11
Console
.
WriteLine
(
"Repeat = "
+
repeat
);
12
13
object
a
=
new
Test
();
14
15
for
(
int
i
=
0
;
i
< (
repeat
*
5000
);
i
++)
16
for
(
int
j
=
0
;
j
<
100000
;
j
++)
17
if
(!(
a
is
Test
))
18
return
1
;
19
20
return
0
;
21
}
22
}
23
24