another microbench
authorDietmar Maurer <dietmar@mono-cvs.ximian.com>
Wed, 2 Jul 2003 14:28:21 +0000 (14:28 -0000)
committerDietmar Maurer <dietmar@mono-cvs.ximian.com>
Wed, 2 Jul 2003 14:28:21 +0000 (14:28 -0000)
svn path=/trunk/mono/; revision=15864

mono/benchmark/Makefile.am
mono/benchmark/boxtest.cs [new file with mode: 0755]

index 68c057bd476b513398f3c9372e14e48951502786..857e5403f24887b5b2712cf823e4721595e0cd1e 100644 (file)
@@ -23,7 +23,8 @@ TESTSRC=                      \
        ctor-bench.cs           \
        readonly.cs             \
        bulkcpy.il              \
-       math.cs
+       math.cs                 \
+       boxtest.cs
 
 TESTSI_TMP=$(TESTSRC:.cs=.exe)
 TESTSI=$(TESTSI_TMP:.il=.exe)
diff --git a/mono/benchmark/boxtest.cs b/mono/benchmark/boxtest.cs
new file mode 100755 (executable)
index 0000000..04385f7
--- /dev/null
@@ -0,0 +1,19 @@
+using System;
+
+
+public class Test {
+
+       public static int Main (string[] args) {
+               object x;
+               
+               for (int i = 0 ; i < 5000000; i++) {
+                       x = i;
+               }
+
+               int j = (int)x;
+               
+               return 0;
+       }
+}
+
+