projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2009-12-03 Zoltan Varga <vargaz@gmail.com>
[mono.git]
/
mono
/
tests
/
gc-stress.cs
1
using System;
2
3
class T {
4
5
static int count = 1000000;
6
static int loops = 20;
7
static object obj;
8
static object obj2;
9
10
static void work () {
11
for (int i = 0; i < count; ++i) {
12
obj = new object ();
13
obj2 = i;
14
}
15
}
16
static void Main (string[] args) {
17
if (args.Length > 0)
18
loops = int.Parse (args [0]);
19
if (args.Length > 1)
20
count = int.Parse (args [1]);
21
for (int i = 0; i < loops; ++i) {
22
work ();
23
}
24
}
25
}
26