repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In Test/System.Windows.Forms:
[mono-project.git]
/
mono
/
benchmark
/
stelemref.cs
blob
7020f5a9eb80fbdb79a76e3adda617ead16bd69a
1
using
System
;
2
class
T
{
3
static void
Main
() {
4
int
i
=
Environment
.
TickCount
;
5
new
T
().
X
();
6
Console
.
WriteLine
(
Environment
.
TickCount
-
i
);
7
}
8
9
void
X
() {
10
object
[]
x
=
new object
[
1
];
11
object
o
=
new object
();
12
for
(
int
i
=
0
;
i
<
10000000
;
i
++)
13
x
[
0
] =
o
;
14
}
15
}