another benchmark
authorDietmar Maurer <dietmar@mono-cvs.ximian.com>
Mon, 14 Apr 2003 13:24:44 +0000 (13:24 -0000)
committerDietmar Maurer <dietmar@mono-cvs.ximian.com>
Mon, 14 Apr 2003 13:24:44 +0000 (13:24 -0000)
svn path=/trunk/mono/; revision=13590

mono/benchmark/static-fields.cs [new file with mode: 0755]

diff --git a/mono/benchmark/static-fields.cs b/mono/benchmark/static-fields.cs
new file mode 100755 (executable)
index 0000000..ce63d1c
--- /dev/null
@@ -0,0 +1,22 @@
+using System;
+
+public class Tests {
+
+       static int si = 0;
+       
+       public static int Main (string[] args) {
+               int h = 0, repeat = 1;
+
+               Console.WriteLine ("Repeat = " + repeat);
+
+               for (int i = 0; i < (repeat * 50); i++) {
+                       for (int j = 0; j < 10000000; j++) {
+                               h += si;
+                       }
+               }
+               
+               return 0;
+       }
+}
+
+