some nice little micro-benchmarks
[mono.git] / mono / benchmark / inline-readonly.cs
diff --git a/mono/benchmark/inline-readonly.cs b/mono/benchmark/inline-readonly.cs
new file mode 100644 (file)
index 0000000..df610ee
--- /dev/null
@@ -0,0 +1,17 @@
+using System;
+
+public class A {
+       
+       static readonly A a = new A ();
+       
+       static int Main ()
+       {       
+               for (int i = 0; i < 500000000; i++)
+                       a.Dummy ();
+               
+               return 0;
+       }
+       
+       public virtual void Dummy () {
+       }
+}
\ No newline at end of file