[Mono-bugs] [Bug 78016][Nor] New - Low performace of new array

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Apr 4 17:27:20 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by marek.safar at seznam.cz.

http://bugzilla.ximian.com/show_bug.cgi?id=78016

--- shadow/78016	2006-04-04 17:27:20.000000000 -0400
+++ shadow/78016.tmp.25798	2006-04-04 17:27:20.000000000 -0400
@@ -0,0 +1,64 @@
+Bug#: 78016
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: JIT
+AssignedTo: lupus at ximian.com                            
+ReportedBy: marek.safar at seznam.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Low performace of new array
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. 
+
+using System;
+using System.Reflection;
+
+class Foo
+{
+  public static int[] FooToo()
+  {
+		int[] a = {1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14};
+		return a;
+  }
+ 
+  static void Main()
+  {
+		DateTime s = DateTime.Now;
+		for (int i = 0; i < 5000000; ++i)
+			FooToo ();
+		Console.WriteLine (DateTime.Now - s);
+  }
+}
+
+Actual Results:
+
+Results from my box
+
+I ran same assembly (mcs output) on 2 runtimes.
+
+Mono -O=all   2.76 s
+MS.NET 2.0    0.53 s
+
+Note: Please use the latest mcs.
+
+Expected Results:
+
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list