contextbound-perf.cs: Test performance of CBO in same context.
svn path=/trunk/mono/; revision=21287
--- /dev/null
+using System;
+using System.Collections;
+using System.Runtime.Remoting;
+
+public class Bar : System.ContextBoundObject {
+}
+
+public class Driver {
+ public static void Main (string[] args) {
+ Bar b = new Bar();
+
+ for (int i = 0; i != 30000000; i++)
+ if (!b.Equals (b))
+ Console.WriteLine ("error!!");
+ }
+}
+
public class Test {
public static int Main() {
StringBuilder sb = new StringBuilder ();
- for (int i = 0; i < 500000; i++) {
+ for (int i = 0; i < 1000000; i++) {
sb.Append ("hello");
sb.Append (" world!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- sb.ToString ();
+ string str = sb.ToString ();
+ int len = str.Length;
sb.Length = 0;
}