mono_native_tls_get_value that does not change LastError. (#15568)
[mono-project.git] / mono / benchmark / incr.cs
blob696de5a74435ee6dbf7dddf0b1d096035cb4d5ee
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);
9 int [] window = new int [9];
11 void X () {
12 int scan = 0, match = 0;
13 for (int i = 0; i < 5000000; i ++) {
14 if (window[++scan] == window[++match] &&
15 window[++scan] == window[++match] &&
16 window[++scan] == window[++match] &&
17 window[++scan] == window[++match] &&
18 window[++scan] == window[++match] &&
19 window[++scan] == window[++match] &&
20 window[++scan] == window[++match] &&
21 window[++scan] == window[++match]) {
22 scan = match = 0;