Welcome to mirror list, hosted at ThFree Co, Russian Federation.

stelemref.cs « benchmark « mono - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7020f5a9eb80fbdb79a76e3adda617ead16bd69a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
class T {
	static void Main () {
		int i = Environment.TickCount;
		new T ().X ();
		Console.WriteLine (Environment.TickCount - i);
	}
	
	void X () {
		object [] x = new object [1];
		object o = new object ();
		for (int i = 0; i < 10000000; i ++)
			x [0] = o;
	}
}